Skip to content

Publish from green CI instead of re-gating at the tag #49

Closed

Description

@rennf93

The release workflow of guard-agent-ts should publish only commits whose push CI already passed, instead of re-gating at the tag. guard-core-rs v4.4.0 failed its release because release.yml re-ran lint and tests at the tag on a toolchain pull request CI never used, after the tag was already immutable, and a manual re-drive could not help because the tag check read GITHUB_REF_NAME. Mirroring Guard-Core/guard-core-rs#156: the release event and a workflow_dispatch with a required tag input both resolve the tag, a verify job checks the tag against the package version and requires green push CI on the tagged commit, and the publish job checks the tag out explicitly and skips anything already published, so a fixed master workflow can re-drive an existing tag safely.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions