Skip to content

Commit

Permalink
build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jainankit committed Dec 1, 2023
1 parent e826741 commit d92574e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/aviator-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- run: |
set -euo pipefail
git fetch origin $GITHUB_BASE_REF
TARGETS_JSON=$(npx nx show projects --affected --base $GITHUB_BASE_REF --head $GITHUB_HEAD_REF --json)
echo $TARGETS_JSON
curl -X POST -H "Authorization: Bearer ${{ secrets.AVIATOR_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"action": "update",
"pull_request": {
"number": '"$PR_NUMBER"',
"repository": {"name": "aviator-co", "org": "nx-examples"},
"affected_targets": '"$TARGETS_JSON"'
}
}' https://api.aviator.co/api/v1/pull_request/
# TARGETS_JSON=$(npx nx show projects --affected --base FETCH_HEAD --head $GITHUB_HEAD_REF --json)
# echo $TARGETS_JSON
# curl -X POST -H "Authorization: Bearer ${{ secrets.AVIATOR_API_KEY }}" \
# -H "Content-Type: application/json" \
# -d '{
# "action": "update",
# "pull_request": {
# "number": '"$PR_NUMBER"',
# "repository": {"name": "aviator-co", "org": "nx-examples"},
# "affected_targets": '"$TARGETS_JSON"'
# }
# }' https://api.aviator.co/api/v1/pull_request/

0 comments on commit d92574e

Please sign in to comment.