Skip to content

Commit cade325

Browse files
committed
feat: add customizable push command to coverage workflow
1 parent 6377b2f commit cade325

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/coverage.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
required: false
1313
default: "17"
1414
type: string
15-
1615
minimum_coverage:
1716
description: "Minimum coverage percentage"
1817
required: false
@@ -38,6 +37,11 @@ on:
3837
required: false
3938
default: "us-east-1"
4039
type: string
40+
push_command:
41+
description: "Push command"
42+
required: false
43+
default: "origin ${{ github.event.pull_request.head.ref }} --set-upstream --force"
44+
type: string
4145

4246
jobs:
4347
coverage:
@@ -122,7 +126,8 @@ jobs:
122126
author_email: github-actions[bot]@users.noreply.github.com
123127
committer_name: GitHub Actions
124128
committer_email: github-actions[bot]@users.noreply.github.com
129+
# default_author: github_actions
125130
message: "[GitHub Actions] Autogenerated JaCoCo coverage badge"
126131
fetch: false
127132
tag_push: '--force'
128-
push: 'origin ${{ github.event.pull_request.head.ref }} --set-upstream --force' # Força o push - ignora outros
133+
push: ${{ inputs.push_command }}

0 commit comments

Comments
 (0)