File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,13 +103,14 @@ jobs:
103103 release :
104104 needs : release_check
105105
106+ # if: |
107+ # needs.release_check.outputs.run_publish == 'true' &&
108+ # github.repository == 'ruby/json' &&
109+ # github.ref_name == github.event.repository.default_branch
110+
106111 if : |
107112 needs.release_check.outputs.run_publish == 'true'
108-
109- # &&
110- # github.repository == 'ruby/json' &&
111- # github.ref_name == 'try-auto-release'
112- # github.event.repository.default_branch
113+
113114 runs-on : ubuntu-latest
114115
115116 environment :
@@ -128,7 +129,8 @@ jobs:
128129 - name : github.repository
129130 run : echo ${{github.repository}}
130131 - name : github.ref_name
131- run : echo ${{github.ref_name}}
132+ run : echo "${{github.ref_name}} | default_branch = ${{ github.event.repository.default_branch }}"
133+
132134 - name : Harden Runner
133135 uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
134136 with :
You can’t perform that action at this time.
0 commit comments