Skip to content

Commit

Permalink
fix(workflows): release workflow commit and push author (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschuerch authored Jul 10, 2024
1 parent 77b48f8 commit 749b032
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 749b032

Please sign in to comment.