Skip to content

Commit

Permalink
ci: upload patches on failure, and update non-failing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Sep 24, 2024
1 parent 2a25f71 commit c2c643d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,20 @@ jobs:
- run: |
nix run .#update -- do-upgrade -A ${{matrix.pkg}}
id: do-upgrade
- run: |
[[ -z "$(git log '@{push}..')" ]] && nix run .#update -- upgrade -A ${{matrix.pkg}} -- --commit
if: failure()
- run: |
git format-patch $COMMIT -o new-patches
if: always()
- uses: actions/upload-artifact@v4
if: always()
with:
name: partial-patches-${{matrix.pkg}}
name: ${{ steps.do-upgrade.outcome == 'success' && 'failed-' || '' }}partial-patches-${{matrix.pkg}}
path: new-patches
if-no-files-found: ignore

Expand Down Expand Up @@ -76,6 +84,7 @@ jobs:
ls -lh *.tar*
build:
if: needs.collate.result == 'success'
needs: [ collate ]
uses: ./.github/workflows/main.yml
with:
Expand Down

0 comments on commit c2c643d

Please sign in to comment.