Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #371 from illright/aabounegm-patch-1
Browse files Browse the repository at this point in the history
Replace deprecated action with a custom script
  • Loading branch information
aabounegm authored Jun 27, 2023
2 parents 603478c + 559c593 commit 845ef78
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ jobs:
return changelog.slice(start + 1, end).join('\n').trim();
- name: Create a release 🔖
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
uses: actions/github-script@v3
with:
tag_name: ${{ steps.fetch-version.outputs.result }}
release_name: ${{ steps.fetch-version.outputs.result }}
body: ${{ steps.fetch-changelog.outputs.result }}
commitish: main
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: "${{ steps.fetch-version.outputs.result }}",
name: "${{ steps.fetch-version.outputs.result }}",
body: "${{ steps.fetch-changelog.outputs.result }}"
});

0 comments on commit 845ef78

Please sign in to comment.