From d693e110142d9060b951923a80116b520c611d6c Mon Sep 17 00:00:00 2001 From: Ben Knutson Date: Wed, 18 Feb 2026 16:14:36 +0000 Subject: [PATCH] Refactor Github Action per b/485167538 --- .github/workflows/automerge.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index aa12eae84..a82dcc31a 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -23,7 +23,7 @@ jobs: pull-requests: write steps: - run: | - gh api graphql -f pullRequestId="${{ github.event.pull_request.node_id }}" -f query=' + gh api graphql -f pullRequestId="${GITHUB_EVENT_PULL_REQUEST_NODE_ID}" -f query=' mutation EnablePullRequestAutoMerge($pullRequestId: ID!) { enablePullRequestAutoMerge(input: {pullRequestId: $pullRequestId}) { clientMutationId @@ -32,6 +32,7 @@ jobs: ' env: GH_TOKEN: ${{ github.token }} + GITHUB_EVENT_PULL_REQUEST_NODE_ID: ${{ github.event.pull_request.node_id }} wait-on-checks: needs: enable-automerge