diff --git a/.github/workflows/patch-build.yaml b/.github/workflows/patch-build.yaml index 59d5780d6..844ab905f 100644 --- a/.github/workflows/patch-build.yaml +++ b/.github/workflows/patch-build.yaml @@ -24,6 +24,7 @@ jobs: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} - name: Rebase with main branch, to make sure the code has latest main changes + if: github.ref != 'refs/heads/main' run: | git remote -v git config --global user.email "action@github.com"