Skip to content
Open
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
20 changes: 6 additions & 14 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,14 @@ jobs:
echo "No scroll source changes; skipping preview push."
else
echo "changed=true" >> "$GITHUB_OUTPUT"
roots="$(
git diff --name-only "origin/${{ github.base_ref }}"..HEAD -- scrolls \
| awk -F/ '$1 == "scrolls" && $2 != "" && $3 != "" && $3 != ".build" && $3 != ".sample" { print "./"$1"/"$2"/"$3 }' \
| sort -u \
| tr '\n' ' '
)"
echo "roots=${roots}" >> "$GITHUB_OUTPUT"
if [ -n "$roots" ]; then
echo "Scroll source changed; publishing previews for: ${roots}"
else
echo "Scroll source changed; publishing all previews."
fi
echo "Scroll source changed; publishing preview tags."
fi
- name: Push experimental PR tags
if: github.event.pull_request.head.repo.full_name == github.repository && steps.scroll-changes.outputs.changed == 'true'
env:
SCROLL_REGISTRY_HOST: ${{ secrets.SCROLL_REGISTRY_HOST }}
SCROLL_PR_ROOTS: ${{ steps.scroll-changes.outputs.roots }}
run: ./scripts/push.sh "${{ github.event.pull_request.number }}"
SCROLL_REGISTRY_NAMESPACE: druid-team-experimental
SCROLL_REGISTRY_RUNTIME_NAMESPACE: druid-team
SCROLL_TAG_SUFFIX: -pr${{ github.event.pull_request.number }}
SCROLL_PUSH_CATEGORIES: "0"
run: ./scripts/push.sh
Loading
Loading