Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: Deploy
steps:
- uses: actions/checkout@v4
with:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test PR
on:
pull_request: {}
pull_request_target: {}

jobs:
test:
Expand Down Expand Up @@ -33,9 +33,9 @@ jobs:
sparseCheckoutPaths = Array.from(packages).map((pkg) => `packages/preview/${pkg.name}/${pkg.version}/`).join('\n');
}
core.setOutput('sparse-checkout-paths', sparseCheckoutPaths);

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
sparse-checkout: |
${{ steps.extract-package.outputs.sparse-checkout-paths }}
bundler/
Expand All @@ -53,19 +53,22 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
environment: Package Check
steps:
- name: Count how many commits need to be fetched
id: base-depth
run: echo "base-depth=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ steps.base-depth.outputs.base-depth }}
- name: Fetch necessary Git objects
run: |
merge_sha=$(/usr/bin/git log -1 --format=%H)
pr_head=$(/usr/bin/git log -1 --format=%H)
git fetch origin ${{ github.base_ref }}
git checkout ${{ github.base_ref }}
git checkout $merge_sha
git checkout $pr_head
git rebase ${{ github.base_ref }}
- uses: typst/[email protected]
with:
installation-id: ${{ secrets.GH_INSTALLATION_ID }}
Expand Down