Skip to content

Commit

Permalink
Fix release workflow version validation
Browse files Browse the repository at this point in the history
We don't have (and actually don't need) a repo checkout in this release
job step.
  • Loading branch information
mkasberg committed Jan 8, 2025
1 parent f5fff46 commit ccf6329
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ jobs:

- name: Validate Release Version
run: |
if ! head -n 1 changelog.Debian | grep -q '${{ inputs.release_version }}'; then
echo "::error::Release version does not match changelog."
exit 1
else
if ls *${{ inputs.release_version }}* 1> /dev/null 2>&1; then
# Version is correct.
# The git tag shouldn't have `~`
echo "RELEASE_TAG=$(echo '${{ inputs.release_version }}' | sed 's/~/-/g')" >> $GITHUB_ENV
else
echo "::error::Release version does not match filenames."
exit 1
fi
- name: Publish Release Draft
Expand Down

0 comments on commit ccf6329

Please sign in to comment.