Skip to content

Commit

Permalink
move git config, fix or notation
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Dec 18, 2024
1 parent efb9b63 commit 8a155ba
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ jobs:
needs: [audit-changelog, audit-version-in-code, create-temp-branch]

steps:
- name: "Set Git User"
run: |
git config user.name "Github Build Bot"
git config user.email "[email protected]"
- name: "Checkout ${{ github.repository }} Branch ${{ needs.create-temp-branch.outputs.branch_name }}"
uses: actions/checkout@v4
with:
ref: ${{ needs.create-temp-branch.outputs.branch_name }}

- name: "Set Git User"
run: |
git config user.name "Github Build Bot"
git config user.email "[email protected]"
- name: "Add Homebrew To PATH"
run: |
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
Expand Down Expand Up @@ -328,13 +328,13 @@ jobs:
# this step will fail on whitespace errors but also correct them, so add a `| true` to avoid failure
- name: "Remove Trailing Whitespace Via Pre-commit"
run: |
pre-commit run trailing-whitespace --files .bumpversion.cfg CHANGELOG.md .changes/* | true
pre-commit run trailing-whitespace --files .bumpversion.cfg CHANGELOG.md .changes/* || true
git status
# this step will fail on newline errors but also correct them, so add a `| true` to avoid failure
- name: "Removing Extra Newlines Via Pre-commit"
run: |
pre-commit run end-of-file-fixer --files .bumpversion.cfg CHANGELOG.md .changes/* | true
pre-commit run end-of-file-fixer --files .bumpversion.cfg CHANGELOG.md .changes/* || true
git status
- name: "Commit & Push Changes"
Expand Down Expand Up @@ -388,17 +388,17 @@ jobs:
echo needs.audit-changelog.outputs.exists: ${{ needs.audit-changelog.outputs.exists }}
echo needs.audit-version-in-code.outputs.up_to_date: ${{ needs.audit-version-in-code.outputs.up_to_date }}
- name: "Set Git User"
run: |
git config user.name "Github Build Bot"
git config user.email "[email protected]"
- name: "Checkout Repo ${{ github.repository }}"
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
token: ${{ secrets.FISHTOWN_BOT_PAT }}

- name: "Set Git User"
run: |
git config user.name "Github Build Bot"
git config user.email "[email protected]"
- name: "Merge in changes"
run: |
git fetch origin ${{ needs.create-temp-branch.outputs.branch_name }}
Expand Down

0 comments on commit 8a155ba

Please sign in to comment.