diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-09-27 20:10:19 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-09-27 20:10:21 -0700 |
| commit | 4a1d078636776d8c6544ee18d05730c2ea31ef99 (patch) | |
| tree | 9a4c9cedf79f73d628a1dbe19d7695a4bc5a89f8 | |
| parent | 9b5eb828025cf0b7c023325e6e086422bcada355 (diff) | |
Limit the auto-style push to master
It probably doesn't need to run for topic branches created by
dependabot, and it's also likely annoying in stable branches like
ruby_X_Y too.
| -rw-r--r-- | .github/workflows/check_misc.yml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 5cca11abce..7c745acf56 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -32,15 +32,14 @@ jobs: - name: Auto-correct code styles run: | set -x - ruby tool/auto-style.rb "$GITHUB_OLD_SHA" "$GITHUB_NEW_SHA" "$PUSH_REF" + ruby tool/auto-style.rb "$GITHUB_OLD_SHA" "$GITHUB_NEW_SHA" refs/heads/master env: GITHUB_OLD_SHA: ${{ github.event.before }} GITHUB_NEW_SHA: ${{ github.event.after }} GIT_AUTHOR_NAME: git GIT_COMMITTER_NAME: git EMAIL: svn-admin@ruby-lang.org - PUSH_REF: ${{ github.ref }} - if: ${{ github.repository == 'ruby/ruby' && github.event_name == 'push' }} + if: ${{ github.repository == 'ruby/ruby' && github.ref == 'refs/heads/master' && github.event_name == 'push' }} - name: Check for code styles run: | set -x |
