diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..03bd0b1 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,21 @@ +name: Add PR to Project Board +on: + pull_request: + types: [opened] + +jobs: + main: + if: ${{ github.event.pull_request.user.login != 'kevinwcyu' }} + runs-on: ubuntu-latest + steps: + - name: 'Generate token' + id: generate_token + uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a + with: + app_id: ${{ secrets.AWS_DS_TOKEN_CREATOR_ID }} + private_key: ${{ secrets.AWS_DS_TOKEN_CREATOR_PEM }} + - name: 'Add to project' + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/grafana/projects/97 + github-token: ${{ steps.generate_token.outputs.token }}