diff --git a/.github/workflows/enable-automerge.yml b/.github/workflows/enable-automerge.yml new file mode 100644 index 0000000000..bdce1a2608 --- /dev/null +++ b/.github/workflows/enable-automerge.yml @@ -0,0 +1,16 @@ +name: Enable Automerge + +on: + pull_request_target: + types: [ edited, labeled ] + +jobs: + main: + if: contains(github.event.pull_request.labels.*.name, 'automerge') + runs-on: ubuntu-latest + + steps: + - name: Enable Automerge + uses: Workday/canvas-kit-actions/enable-automerge@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/new_issue.yml b/.github/workflows/new_issue.yml index c24d120feb..d812b1e0b3 100644 --- a/.github/workflows/new_issue.yml +++ b/.github/workflows/new_issue.yml @@ -12,4 +12,4 @@ jobs: with: project: Backlog column: Open - repo-token: ${{ secrets.GH_RW_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }}