From ccea9f6255a2f1db905115f6bf32792b7ae6937e Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Wed, 16 Oct 2024 10:26:14 -0600 Subject: [PATCH] Add check for actor to prevent infinite loop --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ba7cf85..5225d0d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,10 @@ concurrency: ${{ github.workflow }} jobs: get_pull_request: runs-on: ubuntu-latest + + # os-botify[bot] will update the version on `main`, so this check is important to prevent an infinite loop + if: ${{ github.actor != 'os-botify[bot]' }} + outputs: pull_request_number: ${{ steps.getMergedPullRequest.outputs.number }} steps: