From 906e9f0a648220c28eb187eec5caf68fed163700 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Mon, 4 Nov 2024 19:56:24 +0530 Subject: [PATCH] DEV: generate custom token from app to perform release action --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 34dbc47c..69880ba2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,6 +38,12 @@ 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') @@ -45,3 +51,4 @@ jobs: name: Tests Passed tag_name: tests-passed prerelease: true + token: ${{ steps.generate-token.outputs.token }}