From 1377d55407630d44f27f325a508fa3fb1832892c Mon Sep 17 00:00:00 2001 From: John Guan Date: Thu, 21 Jul 2022 00:06:03 +0800 Subject: [PATCH] Create move_alpha_bug_to_project.yml --- .../workflows/move_alpha_bug_to_project.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/move_alpha_bug_to_project.yml diff --git a/.github/workflows/move_alpha_bug_to_project.yml b/.github/workflows/move_alpha_bug_to_project.yml new file mode 100644 index 0000000..34ae455 --- /dev/null +++ b/.github/workflows/move_alpha_bug_to_project.yml @@ -0,0 +1,26 @@ +# This is a basic workflow to help you get started with Actions + +name: Move alpha bug to project + +on: + issues: + types: + - opened + +jobs: + track_issue: + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0 + with: + app_id: ${{ secrets.ALPHA_BOT_ID }} + private_key: ${{ secrets.ALPHA_BOT_PEM }} + + - name: Add Issue To GitHub Projects Beta + with: + project-url: https://github.com/orgs/IceWhaleTech/projects/5 + github-token: ${{ steps.generate_token.outputs.token }} + labeled: alpha, bug + label-operator: AND