Skip to content

Commit

Permalink
Update workflow files to actions/github-script@v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Ap3rtur3 committed Jun 20, 2024
1 parent 5c56377 commit 1cb40a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
tagging_message: v${{ inputs.version }}
- if: inputs.update-major-tag
name: Update major version tag
uses: actions/github-script@v3
uses: actions/github-script@v7
env:
VERSION: ${{ inputs.version }}
SHA: ${{ steps.commit-step.outputs.commit_hash }}
Expand All @@ -56,15 +56,15 @@ jobs:
return
}
try {
await github.git.deleteRef({
await github.rest.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/" + tag
})
} catch (e) {
console.log("The tag " + tag + " doesn't exist yet.")
}
await github.git.createRef({
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/" + tag,
Expand Down

0 comments on commit 1cb40a6

Please sign in to comment.