Skip to content

Fix release pipeline not triggering on direct tag push#35

Merged
JohnAmadis merged 2 commits intomainfrom
copilot/fix-ci-trigger-on-tag
Mar 10, 2026
Merged

Fix release pipeline not triggering on direct tag push#35
JohnAmadis merged 2 commits intomainfrom
copilot/fix-ci-trigger-on-tag

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

The release workflow only fired on release: types: [created] events (GitHub UI release creation). Pushing a tag directly (e.g. git push origin v0.6) silently skipped the pipeline.

Changes

  • Added push: tags: ['v*'] trigger alongside the existing release trigger
  • Unified tag name resolution — replaced all github.event.release.tag_name with github.event.release.tag_name || github.ref_name to handle both trigger contexts
  • Auto-create GitHub Release on tag push — added a pre-upload step in upload-release-assets that creates a GitHub Release for the tag if one doesn't already exist (required for gh release upload to succeed when no release was created via UI)
on:
  release:
    types: [created]
  push:
    tags:
      - 'v*'
Original prompt

This section details on the original issue you should resolve

<issue_title>CI już się nie triggeruje na tag v0.6</issue_title>
<issue_description>Stworzyłem nowy tag w githubie ale release pipeline się nie striggerował - coś się popsuło ostatnio</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: JohnAmadis <17320783+JohnAmadis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI not triggering on tag v0.6 Fix release pipeline not triggering on direct tag push Mar 10, 2026
@JohnAmadis JohnAmadis marked this pull request as ready for review March 10, 2026 15:45
@JohnAmadis JohnAmadis merged commit 04d6fad into main Mar 10, 2026
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.

CI już się nie triggeruje na tag v0.6

2 participants