From 9032745b9e9ab6d7d5c9dcd513471f783645afd9 Mon Sep 17 00:00:00 2001 From: Antonio Cavaliere <64664639+AntogamerYT@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:15:29 +0200 Subject: [PATCH] Update GenPatches.yml --- .github/workflows/GenPatches.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/GenPatches.yml b/.github/workflows/GenPatches.yml index 3f1df05..07794f3 100644 --- a/.github/workflows/GenPatches.yml +++ b/.github/workflows/GenPatches.yml @@ -4,6 +4,9 @@ on: branches: - main +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -32,7 +35,7 @@ jobs: - name: "Create GitHub release" uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{github.token}} with: tag_name: ${{ env.TAG_NAME }} release_name: Release ${{ env.TAG_NAME }} @@ -41,7 +44,7 @@ jobs: - name: "Upload individual IPS files to release" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{github.token}} run: | for file in Out/*.ips; do gh release upload ${{ env.TAG_NAME }} "$file" --clobber @@ -50,4 +53,4 @@ jobs: - name: "Upload zip file to release" run: gh release upload ${{ env.TAG_NAME }} Out/all_patches.zip --clobber env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{github.token}}