From 4bf93574a18e087adc6f12c2af291d993221d6ec Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 15 Nov 2023 11:23:57 -0600 Subject: [PATCH] Add new file --- .github/workflows/revsys.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/revsys.yml diff --git a/.github/workflows/revsys.yml b/.github/workflows/revsys.yml new file mode 100644 index 0000000..9b67e8c --- /dev/null +++ b/.github/workflows/revsys.yml @@ -0,0 +1,28 @@ +name: Add to REVSYS Backlog + +on: + issues: + types: + - labeled + pull_request: + types: + - labeled + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + if: ${{ github.event.issue.label.name == 'revsys' }} + steps: + - uses: 1password/load-secrets-action@v1 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + REVSYS_PROJECT_URL: "op://GitHub Actions/REVSYS Project/url" + REVSYS_PROJECT_PAT: "op://GitHub Actions/REVSYS Project/PAT" + + - uses: actions/add-to-project@v0.5.0 + with: + project-url: ${{ env.REVSYS_PROJECT_URL }} + github-token: ${{ env.REVSYS_PROJECT_PAT }}