Skip to content

Commit fd40863

Browse files
committed
add pat implementation
1 parent 6f1250d commit fd40863

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

‎.github/workflows/release_actions.yml‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ jobs:
99
name: New release
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: write
13-
pull-requests: read
12+
contents: read
1413
steps:
1514
- name: Clone repository
1615
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -59,10 +58,12 @@ jobs:
5958
echo "release=true" >> "$GITHUB_OUTPUT"
6059
- name: Create GitHub Release
6160
if: steps.check.outputs.release == 'true'
62-
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
63-
with:
64-
tag_name: "${{ steps.check.outputs.version }}"
65-
target_commitish: "${{ steps.revision.outputs.sha }}"
66-
name: "Release ${{ steps.check.outputs.version }}"
67-
generate_release_notes: true
68-
token: ${{ secrets.GITHUB_TOKEN }}
61+
env:
62+
GH_TOKEN: ${{ secrets.RELEASE_PAT }}
63+
VERSION: ${{ steps.check.outputs.version }}
64+
SHA: ${{ steps.revision.outputs.sha }}
65+
run: |
66+
gh release create "$VERSION" \
67+
--target "$SHA" \
68+
--title "Release $VERSION" \
69+
--generate-notes

0 commit comments

Comments
 (0)