Skip to content

Commit

Permalink
fix: reorder git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Mar 5, 2024
1 parent 12fc997 commit 150fdca
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,21 @@ jobs:
# except the version with the `primary-key`, if it exists
purge-primary-key: never

- name: Configure github-actions bot
if: github.event_name == 'push'
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
${{ env.git_pull }}
- name: Install packages & Build the action
run: nix run .#install

- name: Update docs
run: nix run .#write

- name: Commit & Push changes
if: github.event_name == 'push'

- name: Commit & push changes
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
${{ env.git_pull }} --autostash
git add dist
git commit -m "action: build the action" || echo ""
git add .
Expand Down

0 comments on commit 150fdca

Please sign in to comment.