Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Jul 14, 2024
1 parent 309776e commit c112403
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,29 @@ on:
pull_request_target:
workflow_dispatch:

permissions:
# for update snapshots
contents: write

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# make sure we have a branch when triggered by pull_request (ie: avoids a detached HEAD)
ref: ${{ github.head_ref }}
- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
- name: Test
run: make -B test
- name: Update snapshot
- name: Update snapshots
run: |
git config user.name snapshot
git config user.email snapshot@users.noreply.github.com
git config user.name snapshots
git config user.email snapshots@users.noreply.github.com
git status
git add .
if git commit -m "chore: update snapshot"; then
if git commit -m "chore: update snapshots"; then
git push
fi

0 comments on commit c112403

Please sign in to comment.