Skip to content

Commit 5641ebc

Browse files
committed
fic input name
1 parent 80d4abe commit 5641ebc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
description: 'Version - patch version of the release (e.g. x.y.z)'
99
required: true
1010
type: string
11-
branch-ref-or-commit:
11+
branch_ref_or_commit:
1212
description: 'Branch ref or commit - the backup-utils release will associated with the branch ref or commit provided. If blank, an empty commit will be created on master'
1313
required: false
1414
type: string
@@ -80,14 +80,14 @@ jobs:
8080
release-ref-or-commit: ${{ steps.resolve-release-commit.outputs.release-ref-or-commit }}
8181
steps:
8282
- name: Checkout backup-utils
83-
if: github.event.inputs.branch-ref-or-commit == ''
83+
if: github.event.inputs.branch_ref_or_commit == ''
8484
uses: actions/checkout@v4
8585
with:
8686
token: ${{ needs.build.outputs.token }}
8787
repository: github/backup-utils
8888
ref: master
8989
- name: Create empty commit
90-
if: github.event.inputs.branch-ref-or-commit == ''
90+
if: github.event.inputs.branch_ref_or_commit == ''
9191
uses: stefanzweifel/git-auto-commit-action@v4
9292
id: empty-commit
9393
with:
@@ -101,12 +101,12 @@ jobs:
101101
- name: Resolve release commit
102102
id: resolve-release-commit
103103
run: |
104-
if [[ -z "${{ github.event.inputs.branch-ref-or-commit }}" ]]; then
104+
if [[ -z "${{ github.event.inputs.branch_ref_or_commit }}" ]]; then
105105
echo "Using empty commit sha for release commit"
106106
echo "release-ref-or-commit=\"${{ steps.empty-commit.outputs.commit_hash }}\"" >> "$GITHUB_OUTPUT"
107107
else
108108
echo "Using provided commit sha for release commit"
109-
echo "release-ref-or-commit=\"${{ github.event.inputs.branch-ref-or-commit }}\"" >> "$GITHUB_OUTPUT"
109+
echo "release-ref-or-commit=\"${{ github.event.inputs.branch_ref_or_commit }}\"" >> "$GITHUB_OUTPUT"
110110
fi
111111
# need backup-utils-private for release notes
112112
- name: Checkout backup-utils-private

0 commit comments

Comments
 (0)