Skip to content

Commit

Permalink
fix(workflows): create-release-branch push author and netlify-sites e…
Browse files Browse the repository at this point in the history
…xists typo (#3241)
  • Loading branch information
oliverschuerch authored Jul 10, 2024
1 parent a94a4ce commit 77b48f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ 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 @@ -329,7 +330,7 @@ jobs:
echo "exists=$exists" >> $GITHUB_OUTPUT
- name: Create Netlify Site (if it does not exist)
if: ${{ steps.netlify-site.outputs.exists == false }}
if: steps.netlify-sites.outputs.exists == 'false'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: netlify sites:create --filter @swisspost/design-system-documentation --account-slug oss-udwyths --name ${{ fromJSON(needs.collect-release-data.outputs.release-data).old.siteUrl }} --manual
Expand Down Expand Up @@ -372,6 +373,7 @@ 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 @@ -411,13 +413,13 @@ jobs:
- name: Remove Changeset Branch
if: needs.collect-release-data.outputs.release-changeset-branch-exists == 'true'
env:
GITHUB_TOKEN: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }}
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.SWISSPOSTDEVS_ACCESS_TOKEN }}
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 77b48f8

Please sign in to comment.