Skip to content

Commit

Permalink
fix(sentences): configure git to support pushing to the PR branch
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Aug 24, 2024
1 parent b76eeea commit 57179db
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ jobs:
purge-primary-key: never
- name: Remove old cache profiles
run: rm -rf /nix/var/nix/profiles/cache
- name: Configure git for github-actions
- name: Configure git
env:
# required for gh
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}.
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
${{ github.head_ref && format('gh pr checkout {0}', github.event.pull_request.number) || ''}}
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Pull latest changes
run: git pull --rebase --autostash
- name: Update flake locks
Expand Down

0 comments on commit 57179db

Please sign in to comment.