Skip to content

Commit 93ff37e

Browse files
authored
Merge pull request #124 from BitGo/VL-3317-3
fix(gha): force publish on manually triggered workflow
2 parents 5eefcdd + 658b0f6 commit 93ff37e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release-to-ghcr.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
echo "Version changed from $previous_version to $current_version in the last commit"
5959
echo "version-changed=true" >> $GITHUB_OUTPUT
6060
echo "new-version=$current_version" >> $GITHUB_OUTPUT
61+
elif [ -n "${{ github.event.inputs.commit_sha }}" ] && [[ "$current_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
62+
echo "Workflow was manually triggered, trying to publish $current_version"
63+
echo "version-changed=true" >> $GITHUB_OUTPUT
64+
echo "new-version=$current_version" >> $GITHUB_OUTPUT
6165
else
6266
echo "Version unchanged or not following semantic versioning format"
6367
echo "version-changed=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)