-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): switch to shared workflows
- Loading branch information
Showing
3 changed files
with
14 additions
and
83 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 |
---|---|---|
@@ -1,34 +1,11 @@ | ||
name: Fill in release tags | ||
|
||
name: "fill in release tags" | ||
|
||
# When a release tag is pushed (i.e v2.3.0), we can update shortened tags | ||
on: | ||
release: | ||
types: | ||
- "released" | ||
types: [ "released" ] | ||
|
||
jobs: | ||
check-dist: | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: "actions/checkout@v4" | ||
- name: "create tag parts" | ||
id: "match" | ||
uses: "KyoriPowered/action-regex-match@v4" | ||
with: | ||
text: "${{ github.event.release.tag_name }}" | ||
regex: 'v((\d+)\.(\d+)\.(\d+))' | ||
- name: "create and push tags" | ||
env: | ||
RELEASE: "${{ steps.match.outputs.group1 }}" | ||
MAJOR: "${{ steps.match.outputs.group2 }}" | ||
MINOR: "${{ steps.match.outputs.group3 }}" | ||
PATCH: "${{ steps.match.outputs.group4 }}" | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git tag -f v$MAJOR.$MINOR -m "Release $RELEASE" | ||
git tag -f v$MAJOR -m "Release $RELEASE" | ||
git push -f --tags origin | ||
fill-tags: | ||
uses: "KyoriPowered/.github/.github/workflows/shared-action-fill-in-tags.yaml@trunk" | ||
secrets: "inherit" |
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