diff options
Diffstat (limited to '.forgejo/workflows/mirror-sync.yml')
| -rw-r--r-- | .forgejo/workflows/mirror-sync.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.forgejo/workflows/mirror-sync.yml b/.forgejo/workflows/mirror-sync.yml index a95bad4..c4ee23c 100644 --- a/.forgejo/workflows/mirror-sync.yml +++ b/.forgejo/workflows/mirror-sync.yml @@ -39,9 +39,14 @@ jobs: timeout-minutes: 30 container: image: docker:29-cli + env: + # shared by the verify and publish steps; a step-level env would not be + # visible to the next step + MARKERS_FILE: ${{ runner.temp }}/mirror-markers steps: - name: Install workflow tools - run: apk add --no-cache bash curl git jq + # nodejs is required by actions/checkout inside this image + run: apk add --no-cache bash curl git jq nodejs - name: Check out the marker tags uses: https://github.com/actions/checkout@v4 @@ -54,13 +59,12 @@ jobs: # points at the daemon, so the pull goes over the public hostname and # the real TLS/edge path. VERIFY_PULL: ${{ inputs.verify_all == '1' && 'always' || 'new' }} - MARKERS_FILE: ${{ runner.temp }}/mirror-markers run: ./scripts/verify-mirror.sh - name: Publish marker tags run: | set -eu - file="${MARKERS_FILE:-$RUNNER_TEMP/mirror-markers}" + file="$MARKERS_FILE" [ -s "$file" ] || { echo "no new markers"; exit 0; } while read -r marker; do [ -n "$marker" ] || continue |
