Skip to content

Commit

Permalink
Update script to account for no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed May 10, 2022
1 parent 08081c7 commit 3481b77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ deny_version=$2

awk -i inplace -v dvers="$deny_version" '{sub(/ENV\sdeny_version=[^\n]+/,"ENV deny_version=\"" dvers "\"")}1' Dockerfile

git add Dockerfile && git commit -m "Bump to $deny_version"
git add Dockerfile
git diff-index --quiet HEAD || git commit -m "Bump to $deny_version"

# Add the new tag
git tag -a "v$version" -m "Release $version - cargo-deny $deny_version"
Expand Down
8 changes: 4 additions & 4 deletions test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3481b77

Please sign in to comment.