From 664fdadd482d1742e37bbd8b50410f86dc10dcbe Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 7 Oct 2023 11:14:01 -0400 Subject: actions: checkout repo in staging-automerge --- .github/workflows/staging-automerge.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/staging-automerge.yaml b/.github/workflows/staging-automerge.yaml index 5894388..3f43d88 100644 --- a/.github/workflows/staging-automerge.yaml +++ b/.github/workflows/staging-automerge.yaml @@ -13,10 +13,9 @@ jobs: contents: write pull-requests: write - env: - GITHUB_TOKEN: ${{ github.token }} - steps: + - uses: actions/checkout@v4 + - name: create pr run: | { @@ -30,5 +29,11 @@ jobs: echo EOF } >> "$GITHUB_ENV" + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: enable auto-merge run: gh pr merge --auto --rebase "$PR" + env: + GITHUB_TOKEN: ${{ github.token }} -- cgit v1.2.3