diff --git a/.github/workflows/github-actions-update-rules.yml b/.github/workflows/github-actions-update-rules.yml index ed7f3cec25..c1f89b4884 100644 --- a/.github/workflows/github-actions-update-rules.yml +++ b/.github/workflows/github-actions-update-rules.yml @@ -19,7 +19,11 @@ jobs: with: submodules: recursive fetch-depth: 0 - ref: ${{ github.event.client_payload.branch }} + - name: Git prep + run: | + git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" + git fetch + git checkout ${{ github.event.client_payload.branch }} - uses: actions/setup-python@v4 with: python-version: "3.10"