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

types: save result as workflow artifact #88

Merged
merged 1 commit 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
15 changes: 15 additions & 0 deletions .github/workflows/pocketbase-typegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
PB_ADMIN_EMAIL: ${{ secrets.PB_ADMIN_EMAIL }}
run: make pb_types

- name: Upload generated types
uses: actions/upload-artifact@v3
with:
name: generated-types
path: src/lib/pocketbase/index.d.ts

- name: Check for changes
id: check_changes
run: |
Expand All @@ -48,6 +54,15 @@ jobs:
if: needs.typegen.outputs.commit_changes
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download generated types
uses: actions/download-artifact@v3
with:
name: generated-types
path: src/lib/pocketbase/

- name: Configure git
run: |
git config user.name "github-actions[bot]"
Expand Down
Loading