diff options
| author | agent <agent@local> | 2026-11-07 09:08:13 +0100 |
|---|---|---|
| committer | agent <agent@local> | 2026-11-07 09:08:13 +0100 |
| commit | 9b6abed08981b8b00f50d9d4af0e86defc3864e7 (patch) | |
| tree | e93174cd42e93c7b42383be20ca87e088b1aab96 /.forgejo | |
| parent | 54541fa8357cf2af616effbaeb7d5b8d76f80ea2 (diff) | |
Fix workflow: nodejs for checkout, job-level marker path
Diffstat (limited to '.forgejo')
| -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 |
