Skip to content

Trigger workflows from a tag push - #14

Merged
Interlap01 merged 1 commit into
mainfrom
tag-triggers
Sep 11, 2026
Merged

Trigger workflows from a tag push#14
Interlap01 merged 1 commit into
mainfrom
tag-triggers

Conversation

@Interlap01

Copy link
Copy Markdown
Collaborator

Pushing a tag ios-build/<id> or ios-share/<id> now starts the build or simulator workflow without the GitHub API, for environments where only git access is available.

  • A push event has no inputs, so a new Resolve parameters step reads ios.path, ios.scheme, ios.signing, ios.configuration, flutter.version and kmp.jdkVersion from builder.json in the tagged commit, falling back to the dispatch defaults. Dispatch runs pass their inputs through unchanged. All later steps read that step's outputs instead of inputs.*.
  • Run name and build id come from the tag when there are no inputs.
  • The job deletes the tag when it ends (also on failure/timeout); tag deletion fires no push event. This requires contents: write on the job token.
  • README and CLAUDE.md document the tag trigger.

Verified: YAML parses, the parameter script was exercised locally against a sample builder.json on a simulated push event, go test ./... passes. Not exercised against a live GitHub tag push.

Note: a push-triggered run uses the workflow file from the tagged commit, and any other workflow with an unfiltered on: push fires on these tags too.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JfXAVZQvVmRFFNdYLc39Tv

Pushing ios-build/<id> or ios-share/<id> starts the same job as the
workflow_dispatch, for environments where the GitHub API is not reachable.
A push event runs the workflow file from the tagged commit and has no
inputs, so a "Resolve parameters" step reads the settings from builder.json
there, with the dispatch defaults, and every later step reads its outputs.
The job deletes the tag when it ends.
@Interlap01
Interlap01 merged commit e9c64ec into main Sep 11, 2026
@Interlap01
Interlap01 deleted the tag-triggers branch September 11, 2026 22:29
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