diff options
| author | seth <[email protected]> | 2023-10-07 11:12:23 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-07 11:12:23 -0400 |
| commit | a6c90879e06be1f3b7c5525d6222fb1d04f597a0 (patch) | |
| tree | b332e52b8f1d13fce0445d3ddfe216b633ec5e53 /.github/workflows | |
| parent | 3d55b734b44a1eae205b0356d383b6d934cefb22 (diff) | |
actions: handle GITHUB_TOKEN in staging-automerge
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/staging-automerge.yaml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/staging-automerge.yaml b/.github/workflows/staging-automerge.yaml index 70aa4c4..5894388 100644 --- a/.github/workflows/staging-automerge.yaml +++ b/.github/workflows/staging-automerge.yaml @@ -5,17 +5,19 @@ on: branches: ["staging"] workflow_dispatch: -permissions: - contents: write - pull-requests: write - jobs: automerge: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + + env: + GITHUB_TOKEN: ${{ github.token }} + steps: - - name: create-pr - id: pr + - name: create pr run: | { echo 'PR<<EOF' @@ -30,5 +32,3 @@ jobs: - name: enable auto-merge run: gh pr merge --auto --rebase "$PR" - env: - GITHUB_TOKEN: ${{ github.token }} |
