Skip to content

Fix missing tag trigger for PyPI release workflow#291

Merged
lionel42 merged 6 commits into
develfrom
copilot/fix-tags-command-in-yaml
May 18, 2026
Merged

Fix missing tag trigger for PyPI release workflow#291
lionel42 merged 6 commits into
develfrom
copilot/fix-tags-command-in-yaml

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

The release_pypi job's if: condition checks startsWith(github.ref, 'refs/tags/'), but the workflow's on.push only listed branches — so pushing a tag never triggered the workflow in tag context. github.ref remained refs/heads/devel, making the condition permanently false.

Change

Added tags: ["v*"] to the push trigger:

on:
  push:
    branches: [ "devel", "main" ]
    tags:
      - "v*"

This ensures pushing a tag like v2.1.0 triggers the workflow with github.ref = refs/tags/v2.1.0, allowing the buildrelease_pypi chain to execute correctly.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI linked an issue Mar 30, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/openghg/fluxie/sessions/6a30c5b1-232b-47b4-9655-7623a1d52745

Co-authored-by: lionel42 <43442120+lionel42@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing tags command in CI YAML for versioning Fix missing tag trigger for PyPI release workflow Mar 30, 2026
Copilot AI requested a review from lionel42 March 30, 2026 08:44
@lionel42
Copy link
Copy Markdown
Collaborator

lionel42 commented Mar 30, 2026

Are you sure this is going to work when I tag ? Maybe link to the official doc ? @copilot

@lionel42 lionel42 marked this pull request as ready for review March 30, 2026 09:16
@lionel42 lionel42 requested a review from SutarPrasad March 30, 2026 09:22
@SutarPrasad
Copy link
Copy Markdown
Member

Hi @lionel42 , I suggest to test this by using dry run flag again and pushing the tag, as you can always delete the pushed tag.

@lionel42 lionel42 assigned SutarPrasad and unassigned lionel42 and Copilot Apr 13, 2026
@lionel42
Copy link
Copy Markdown
Collaborator

@SutarPrasad Any chance you manage to check and merge this ?

@SutarPrasad
Copy link
Copy Markdown
Member

Hi @lionel42 apologies for getting this delayed. I'll be looking at this tomorrow. I was on holiday.

@SutarPrasad
Copy link
Copy Markdown
Member

Hi @lionel42 this is ready. You can verify the testing by opening publish tab on the below page where you will see the tag pushed is recognised to build the distribution files and dry run command was used to test the Trusted publisher.
https://github.com/openghg/fluxie/actions/runs/25819784859/job/75858042927

@lionel42 lionel42 merged commit 360be16 into devel May 18, 2026
2 checks passed
@lionel42 lionel42 deleted the copilot/fix-tags-command-in-yaml branch May 18, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Versioning

3 participants