diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index eefe9d7..a5cddfb 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -42,7 +42,7 @@ jobs: npm test fi - name: Commit pre-built binary - if: github.event_name == 'push' + if: (github.event_name == 'pull_request' || (github.event_name == 'push' && contains(github.event.head_commit.message, 'CI=pre-build'))) run: | if [ -n "$(git status --porcelain -- prebuilds)" ]; then git config --global user.name "GitHub Actions"