Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typegen action men fikset for fjerde gang #86

Merged
merged 2 commits into from
Jan 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading