Skip to content

Commit

Permalink
Merge pull request #86 from Kaffe-diem/typegen-action
Browse files Browse the repository at this point in the history
Typegen action men fikset for fjerde gang
  • Loading branch information
IldenH authored Jan 4, 2025
2 parents f5ee942 + c02bd36 commit 58ae0cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pocketbase-typegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
typegen:
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
uses: actions/checkout@v4
Expand All @@ -30,9 +33,10 @@ jobs:
run: make pb_types

- name: Check for changes
# https://github.com/orgs/community/discussions/25280
id: check_changes
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 58ae0cb

Please sign in to comment.