From 27f6470f5c6010a87c1ed671f687baf5b7dbad8a Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Tue, 18 Oct 2022 13:39:21 +0800 Subject: [PATCH] ci: add community issue action Signed-off-by: Yang Chiu --- .github/workflows/community-issue.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/community-issue.yml diff --git a/.github/workflows/community-issue.yml b/.github/workflows/community-issue.yml new file mode 100644 index 0000000..f40b4a7 --- /dev/null +++ b/.github/workflows/community-issue.yml @@ -0,0 +1,24 @@ +name: Community-Issue +on: + issues: + types: [opened] +jobs: + community: + runs-on: ubuntu-latest + steps: + - name: Is Longhorn Member + uses: tspascoal/get-user-teams-membership@v1.0.4 + id: is-longhorn-member + with: + username: ${{ github.event.issue.user.login }} + organization: longhorn + GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Add To Community Project + if: fromJSON(steps.is-longhorn-member.outputs.teams)[0] == null + uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + with: + gh_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + organization: longhorn + project_id: 5 + resource_node_id: ${{ github.event.issue.node_id }} + status_value: New