ci(devops): downgrade upload-artifact v4 → v3 + ADR-014 + grep guard #558
@@ -59,11 +59,14 @@ jobs:
|
|||||||
- name: Assert no (upload|download)-artifact past v3
|
- name: Assert no (upload|download)-artifact past v3
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Self-test: verify the regex catches v4+ (anchored to YAML `uses:` lines).
|
# Self-test: verify the regex catches v4+ and does not catch v3.
|
||||||
tmp=$(mktemp)
|
tmp=$(mktemp)
|
||||||
printf ' uses: actions/upload-artifact@v5\n' > "$tmp"
|
printf ' uses: actions/upload-artifact@v5\n' > "$tmp"
|
||||||
grep -qP '^\s+uses:\s+actions/(upload|download)-artifact@v[4-9]' "$tmp" \
|
grep -qP '^\s+uses:\s+actions/(upload|download)-artifact@v[4-9]' "$tmp" \
|
||||||
|| { echo "FAIL: guard self-test — regex missed upload-artifact@v5"; rm "$tmp"; exit 1; }
|
|| { echo "FAIL: guard self-test — regex missed upload-artifact@v5"; rm "$tmp"; exit 1; }
|
||||||
|
printf ' uses: actions/upload-artifact@v3\n' > "$tmp"
|
||||||
|
grep -qvP '^\s+uses:\s+actions/(upload|download)-artifact@v[4-9]' "$tmp" \
|
||||||
|
|| { echo "FAIL: guard self-test — regex incorrectly flagged upload-artifact@v3"; rm "$tmp"; exit 1; }
|
||||||
rm "$tmp"
|
rm "$tmp"
|
||||||
# Guard: Gitea Actions (act_runner) does not implement the v4 artifact protocol.
|
# Guard: Gitea Actions (act_runner) does not implement the v4 artifact protocol.
|
||||||
# Both upload-artifact and download-artifact share the same incompatibility.
|
# Both upload-artifact and download-artifact share the same incompatibility.
|
||||||
|
|||||||
Reference in New Issue
Block a user