Skip to content

Commit

Permalink
use partial clone to fetch references on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
jainankit committed Dec 7, 2023
1 parent f9911f3 commit d3ef0f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/aviator-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on:
pull_request:

jobs:
nextjs-build:
fetch-aviator-targets:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
with:
filter: 'blob:none'
depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18'
Expand All @@ -27,7 +30,6 @@ jobs:

- run: |
set -euo pipefail
git fetch origin $GITHUB_BASE_REF
PR_NUMBER=${{ github.event.number }}
TARGETS_JSON=$(npx nx show projects --affected --base ${{ fromJson(steps.get_pr.outputs.data).base.sha }} --head ${{ github.sha }} --json)
echo $TARGETS_JSON
Expand Down

0 comments on commit d3ef0f2

Please sign in to comment.