Skip to content

Commit

Permalink
๐Ÿ’…๐Ÿผ Improve format and doc for workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscasalar committed Dec 10, 2024
1 parent 67345e5 commit 8420f0b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
# This workflow publishes a release when a new tag is created

name: Publish Release

on:
Expand Down Expand Up @@ -31,4 +34,4 @@ jobs:
release_name: ${{ github.ref }}
body: ${{ steps.changelog.outputs.notes }}
draft: false
prerelease: false
prerelease: false
8 changes: 7 additions & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
# This workflow will tag a release whenever a new release is pushed to the main branch
# properly added to the CHANGELOG.md file as a new entry with the following format:
# ## [X.Y.Z] - YYYY-MM-DD


name: Tag Release

on:
Expand Down Expand Up @@ -27,4 +33,4 @@ jobs:
- name: Create Tag
run: |
git tag ${{ steps.changelog.outputs.version }}
git push origin ${{ steps.changelog.outputs.version }}
git push origin ${{ steps.changelog.outputs.version }}
5 changes: 4 additions & 1 deletion .github/workflows/validate-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
# This workflow validates that change log has a valid format

name: Validate Changelog

on:
Expand All @@ -17,4 +20,4 @@ jobs:
if ! grep -qE '^## \[[0-9]+\.[0-9]+\.[0-9]+\] - [0-9]{4}-[0-9]{2}-[0-9]{2}' CHANGELOG.md; then
echo "CHANGELOG format is incorrect, versions should be in the format ## X.Y.Z"
exit 1
fi
fi

0 comments on commit 8420f0b

Please sign in to comment.