Skip to content

release.sh: verify latest script before running#682

Open
bjorkert wants to merge 1 commit into
devfrom
release-script-freshness-guard
Open

release.sh: verify latest script before running#682
bjorkert wants to merge 1 commit into
devfrom
release-script-freshness-guard

Conversation

@bjorkert

Copy link
Copy Markdown
Member

Guards the release flow against running an outdated copy of release.sh.

Before any git operations, the script now fetches origin/dev and compares the running script (${BASH_SOURCE[0]}) against origin/dev:release.sh. If they differ, it aborts with guidance to switch to the latest dev and re-run.

This catches the cases where a stale script would otherwise run:

  • launched from an old branch
  • on dev but behind origin/dev

The check is on script content, not branch — the release flow switches branches itself, so what matters is that the logic being executed is current.

Guard the release flow against running an outdated copy of release.sh. Before any git operations, fetch origin/dev and compare the running script against origin/dev:release.sh, aborting if they differ.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant