-
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.
Updating Tag workflow for permissions and using non deprecated action
- Loading branch information
1 parent
2a79438
commit 8fea14c
Showing
1 changed file
with
8 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
|
||
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. | ||
permissions: | ||
contents: read | ||
contents: write | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
@@ -26,12 +26,14 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Git | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v4 | ||
uses: pdm-project/setup-pdm@v4.1 | ||
with: | ||
python-version: '3.x' | ||
- name: Get tag | ||
|
@@ -67,14 +69,14 @@ jobs: | |
tags: ${{ steps.get_tag.outputs.version }} | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: ${{ steps.get_tag.outputs.version }} | ||
release_name: Release ${{ steps.get_tag.outputs.version }} | ||
name: Release ${{ steps.get_tag.outputs.version }} | ||
body_path: ./release_notes.md | ||
draft: false | ||
prerelease: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Delete release_notes file | ||
run: rm release_notes.md |