diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f22fb00938..7c89dde522 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -184,6 +184,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: + token: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }} ref: changeset-release/${{ github.ref_name }} - name: Setup Node & pnpm @@ -259,7 +260,6 @@ jobs: - name: Commit Changes and Push Branch uses: EndBug/add-and-commit@v9 with: - default_author: github_actions message: 'chore(changesets): update release specific files' push: true @@ -299,6 +299,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: + token: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }} ref: '@swisspost/design-system-styles@${{ fromJSON(needs.collect-release-data.outputs.release-data).old.version }}' - name: Remove Documentation versions.json @@ -373,7 +374,6 @@ jobs: - name: Commit Changes and Push Release Branch uses: EndBug/add-and-commit@v9 with: - default_author: github_actions new_branch: ${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }} message: 'chore(setup): create "${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }}" branch' push: true @@ -409,17 +409,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + token: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }} - name: Remove Changeset Branch if: needs.collect-release-data.outputs.release-changeset-branch-exists == 'true' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: git push origin --delete changeset-release/${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }} - name: Remove Release Branch if: needs.collect-release-data.outputs.release-branch-exists == 'true' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: git push origin --delete ${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }} - name: Create Summary