Skip to content

Commit

Permalink
DEV: generate custom token from app to perform release action
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothkannans committed Nov 4, 2024
1 parent b555382 commit 906e9f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ jobs:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: php artisan test
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/heads/main')
with:
name: Tests Passed
tag_name: tests-passed
prerelease: true
token: ${{ steps.generate-token.outputs.token }}

0 comments on commit 906e9f0

Please sign in to comment.