Skip to content

Commit 4e6fee9

Browse files
committed
fix: refine condition for pushing to protected branch in coverage workflow
1 parent 095c058 commit 4e6fee9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/coverage.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ jobs:
137137
committer_email: github-actions[bot]@users.noreply.github.com
138138
message: "[GitHub Actions] Autogenerated JaCoCo coverage badge"
139139
fetch: false
140-
tag_push: '--force'
140+
tag_push: "--force"
141141
push: ${{ inputs.push_command }}
142142

143143
- name: Push to protected branch
144-
if: ${{ inputs.force_push_protected_branch }} == 'true'
144+
if: ${{ (inputs.force_push_protected_branch == 'true' ) && ( steps.git-check.outputs.modified == 'true' ) }}
145145
uses: CasperWA/push-protected@v2
146146
with:
147147
token: ${{ secrets.ALFAC_PUSH_TO_PROTECTED_BRANCH_TOKEN_CLASSIC }}
148148
force: true
149149
branch: ${{ env.branch_name }}
150-
debug: true
150+
debug: true

0 commit comments

Comments
 (0)