"#"
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Customize:
|
||||
# - paths: list all target subfolders
|
||||
# - branches: list all monorepo branches to trigger on
|
||||
# - org/josh-sync@v1: pin to your library repo and version
|
||||
# - uses: https://your-gitea.example.com/org/josh-sync@v1 — pin to your library repo and version
|
||||
|
||||
name: "Josh Sync → Subrepo"
|
||||
|
||||
@@ -59,10 +59,10 @@ jobs:
|
||||
| jq -r '.[] | "\(.name):\(.subfolder)"' \
|
||||
| while IFS=: read -r name prefix; do
|
||||
echo "$CHANGED" | grep -q "^${prefix}/" && echo "$name"
|
||||
done | sort -u | tr '\n' ' ')
|
||||
done | sort -u | paste -sd ',' -)
|
||||
echo "targets=${TARGETS}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- uses: org/josh-sync@v1
|
||||
- uses: https://your-gitea.example.com/org/josh-sync@v1
|
||||
with:
|
||||
direction: forward
|
||||
target: ${{ github.event.inputs.target || steps.detect.outputs.targets }}
|
||||
|
||||
Reference in New Issue
Block a user