Skip to content

Commit

Permalink
upgrade github-script action to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Oct 23, 2023
1 parent 550c60c commit cd7ceb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
steps:
- name: Get release version
id: releaseVersion
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # 6.1.0
uses: actions/github-script@v6
with:
result-encoding: string
script: |
return '${{ github.event.ref }}'.substring('bump_to_version_'.length);
- name: Get milestone for version
id: milestone
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # 6.1.0
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Generate release notes
if: fromJSON(steps.milestone.outputs.result)
id: generate
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # 6.1.0
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
return draftText
- name: Create draft release
if: fromJSON(steps.milestone.outputs.result)
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # 6.1.0
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down

0 comments on commit cd7ceb7

Please sign in to comment.