Skip to content

Commit

Permalink
Merge pull request #12 from VeyronSakai/ci/update-actions
Browse files Browse the repository at this point in the history
Update actions
  • Loading branch information
VeyronSakai authored Apr 7, 2024
2 parents 43dfa6a + 595f27d commit 2d2a729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
outputs:
tag_name: ${{ steps.release_drafter.outputs.tag_name }}
steps:
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
id: release_drafter
with:
commitish: main
Expand All @@ -34,21 +34,21 @@ jobs:
env:
VERSION: ${{ needs.update_release_draft.outputs.tag_name }}
steps:
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
id: release-drafter
with:
publish: true
commitish: main
- name: Create semver outputs
uses: actions/github-script@v6
uses: actions/github-script@v7
id: semver
with:
script: |
const matched = "${{ env.VERSION }}".match(/(((\d+)\.\d+).\d+)/)
core.setOutput('major', matched[3])
core.setOutput('minor', matched[2])
core.setOutput('patch', matched[1])
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ env.VERSION }}
- name: Update major tag
Expand Down

0 comments on commit 2d2a729

Please sign in to comment.