From 19c104a98a052fb4939f7d567d3e81df35283b04 Mon Sep 17 00:00:00 2001 From: Giovanne Oliveira Date: Fri, 27 May 2022 17:20:33 +0000 Subject: [PATCH] changes on build workflow --- .github/workflows/build_release.yml | 10 ++++++---- .github/workflows/laravel-zero-build.yml | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 2e54ef1..f66cd7b 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -4,6 +4,8 @@ on: push: branches: [ master ] +permissions: write-all + jobs: build: runs-on: ubuntu-latest @@ -17,7 +19,7 @@ jobs: id: semver_tagbump uses: anothrNick/github-tag-action@1.36.0 env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} WITH_V: false DEFAULT_BUMP: patch @@ -31,7 +33,7 @@ jobs: id: changelog uses: loopwerk/tag-changelog@v1 with: - token: ${{ secrets.ACCESS_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Create release uses: actions/create-release@v1 @@ -43,12 +45,12 @@ jobs: tag_name: ${{ steps.semver_tagbump.outputs.new_tag}} body: ${{ steps.changelog.outputs.changes }} env: - GITHUB_TOKEN: ${{github.token}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Upload artifacts uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: builds/ivcli diff --git a/.github/workflows/laravel-zero-build.yml b/.github/workflows/laravel-zero-build.yml index f063651..2f14fa0 100644 --- a/.github/workflows/laravel-zero-build.yml +++ b/.github/workflows/laravel-zero-build.yml @@ -4,6 +4,8 @@ on: push: branches: [ beta ] +permissions: write-all + jobs: build: runs-on: ubuntu-latest @@ -17,7 +19,7 @@ jobs: id: semver_tagbump uses: anothrNick/github-tag-action@1.36.0 env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} WITH_V: false DEFAULT_BUMP: patch @@ -31,7 +33,7 @@ jobs: id: changelog uses: loopwerk/tag-changelog@v1 with: - token: ${{ secrets.ACCESS_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Create release uses: actions/create-release@v1 @@ -43,12 +45,12 @@ jobs: tag_name: ${{ steps.semver_tagbump.outputs.new_tag}} body: ${{ steps.changelog.outputs.changes }} env: - GITHUB_TOKEN: ${{github.token}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Upload artifacts uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: builds/ivcli