-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6957d91
commit dfde3f8
Showing
17 changed files
with
71,705 additions
and
38,529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "**/*.json" | ||
- "**/*.zip" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check commit message | ||
id: check_message | ||
run: | | ||
year=$(date +'%Y') | ||
echo "year=$year" >> $GITHUB_OUTPUT | ||
week=$(date +'%V') | ||
echo "week=$week" >> $GITHUB_OUTPUT | ||
commit_message="${{ github.event.head_commit.message }}" | ||
if echo "$commit_message" | grep -qE "^Updated entries [0-9]+ week [0-9]+$"; then | ||
echo "match=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "match=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
if: steps.check_message.outputs.match == 'true' | ||
with: | ||
name: ${{ steps.check_message.outputs.year }}-${{ steps.check_message.outputs.week }} | ||
tag_name: ${{ steps.check_message.outputs.year }}-${{ steps.check_message.outputs.week }} | ||
generate_release_notes: true | ||
make_latest: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.