Skip to content

Commit

Permalink
types: fix diff condition
Browse files Browse the repository at this point in the history
  • Loading branch information
LilleAila committed Jan 4, 2025
1 parent 5ce5832 commit c02bd36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pocketbase-typegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: Generate pocketbase types
runs-on: ubuntu-latest
outputs:
# https://github.com/orgs/community/discussions/25280
commit_changes: ${{ steps.check_changes.outputs.commit_changes }}
steps:
- name: Checkout code
Expand All @@ -33,9 +34,9 @@ jobs:

- name: Check for changes
id: check_changes
# https://github.com/orgs/community/discussions/25280
run: |
if git diff --quiet; then
# https://stackoverflow.com/a/62213712
if [ $(git status --porcelain | wc -l ) -gt 0 ]; then
echo 'commit_changes=true' >> $GITHUB_OUTPUT
else
echo 'commit_changes=false' >> $GITHUB_OUTPUT
Expand Down

0 comments on commit c02bd36

Please sign in to comment.