Skip to content

Commit

Permalink
Update workflow configurations for changelog and release
Browse files Browse the repository at this point in the history
The `.github/workflows/update-changelog.yml` workflow is now checking out from the `v3` branch instead of `main`. Additionally, `.github/workflows/release.yml` workflow now supports manual triggering with `workflow_dispatch` event and the automatic release tag is now set using the current date and commit SHA.
  • Loading branch information
RealZone22 committed Jun 15, 2024
1 parent 6c7e845 commit dfc3e64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- v3
workflow_dispatch:

jobs:
release:
Expand All @@ -21,10 +22,14 @@ jobs:
zip -r "${d%/}.zip" "$d"
done
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"

- name: Release
uses: MarvinPinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
automatic_release_tag: "${{ steps.date.outputs.date }}-${{ github.sha }}"
prerelease: false
files: "*.zip"
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
ref: v3

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
Expand Down

0 comments on commit dfc3e64

Please sign in to comment.