Skip to content

Commit

Permalink
ci(update): fix run failure when there are no changes from an update
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
dixslyf committed Sep 15, 2024
1 parent 31d33d2 commit 9e50508
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ jobs:
- name: Update flake inputs
run: |
nix flake update
git commit -am "chore(flake): update inputs"
if [ -z "$(git status --porcelain=v1 2>/dev/null)" ]; then
echo "No changes from update"
else
git commit -am "chore(flake): update inputs"
fi
- name: Update npins
run: |
nix develop .#ci --impure --command npins -d "planet/pkgs/npins" update
nix develop .#ci --impure --command npins -d "planet/pkgs/vim-plugins/npins" update
git commit -am "chore(planet/pkgs): update npins"
if [ -z "$(git status --porcelain=v1 2>/dev/null)" ]; then
echo "No changes from update"
else
git commit -am "chore(planet/pkgs): update npins"
fi
- if: ${{ !inputs.dry-run }}
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit 9e50508

Please sign in to comment.