Skip to content

Commit

Permalink
Only update tags on changes to cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
misalcedo authored Jan 6, 2022
1 parent c181a68 commit 88f9225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Add Tag
on:
push:
branches: [ main ]
paths: [ "Cargo.toml" ]
workflow_dispatch: {}

jobs:
tag:
Expand All @@ -22,4 +24,4 @@ jobs:
git tag $TAG --force
git push --tags --force
gh release view $TAG &> /dev/null || gh release create $TAG -d --notes $TAG
gh release view $TAG &> /dev/null || gh release create $TAG -d --notes $TAG

0 comments on commit 88f9225

Please sign in to comment.