Skip to content
Merged
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
11 changes: 6 additions & 5 deletions .github/workflows/fleet-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ jobs:
run: |
set -euo pipefail
# The full roster of 10 example repos. Repinning means: set manifest
# cli_version to the rc, replace any other in-repo rc-version refs,
# cli_version to the rc, replace any other in-repo prerelease refs (rc/dryrun),
# regenerate the workflows with the rc binary, then commit + push only
# if something changed. This preserves every hand-written suite feature:
# regeneration only rewrites the generated workflows, and we touch
Expand All @@ -379,14 +379,15 @@ jobs:
# repos is tracked separately.
sed -i -E '/^[[:space:]]*cli_version_sha:[[:space:]]*/d' "$manifest"

# 2. Replace any other in-repo rc-version refs (e.g. an explicit
# [email protected].. pin a suite hand-wrote) with the rc. Scope
# 2. Replace any other in-repo prerelease refs (rc OR dryrun, e.g. an
# explicit [email protected].. or a stale @v..-dryrun.. pin a suite
# hand-wrote, which a prior dry-run repin may have left) with the rc. Scope
# to tracked text files; the regen below rewrites generated
# workflows, this catches anything outside them.
while IFS= read -r f; do
[ -f "$f" ] || continue
sed -i -E "s|v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+|${RC_VERSION}|g" "$f"
done < <(grep -rlE "v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+" . --include='*.yaml' --include='*.yml' 2>/dev/null || true)
sed -i -E "s#v[0-9]+\.[0-9]+\.[0-9]+-(rc|dryrun)\.[0-9]+#${RC_VERSION}#g" "$f"
done < <(grep -rlE "v[0-9]+\.[0-9]+\.[0-9]+-(rc|dryrun)\.[0-9]+" . --include='*.yaml' --include='*.yml' 2>/dev/null || true)

# 3. Regenerate the workflows with the rc binary. This rewrites the
# generated setup-cli refs to the rc and nothing hand-written.
Expand Down
Loading