Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

Tag push jobs are not being triggered

Solved! Go to Solution.

I've encountered the problem in the repo: https://github.com/denzp/cargo-wharf

 

There are several workflows defined:

name: Publish Docker Hub description
on:
  push:
    tags:
      - cargo-wharf-frontend-latest
      - cargo-container-tools-latest
name: Publish the cargo-container-tools
on:
  push:
    tags:
      - cargo-container-tools-*
name: Publish the cargo-wharf-frontend
on:
  push:
    tags:
      - cargo-wharf-frontend-*
name: Continuous integration
on:
  pull_request:
    branches:
      - master

  push:
    branches:
      - master

 

It works fine with pull requests and commits into master, but I can't manage to trigger tag jobs.

 

I've tried both lightweight and annotated tags already, no luck with these tags:

cargo-wharf-frontend-v0.1.0-alpha.0
cargo-wharf-frontend-latest
cargo-container-tools-v0.2.0-alpha.0
cargo-container-tools-latest

 

2 Replies
Solution
GitHub Partner
Message 2 of 3

Re: Tag push jobs are not being triggered

Hi denzp,

 

I forked your repository and tested the tags filter on the fork repository:

I checkout the branch consistent-caching, and made some changes, then I executed the following git commands to add to tags and push the tags the remote.

 

git commit -a -m "Update README.md - 19110803"
git tag cargo-container-tools-ver03
git tag cargo-wharf-frontend-ver03
git push –tags

 

 Then these two tags triggered two workflows as expectation.

example.PNG

This also can work on master branch, but not on experiment-dockerfile branch, because the on experiment-dockerfile branch there are no the YAML files for workflows.

What branch did you checkout to push the tags? Please make sure the YAML files for workflows are existing on the branch.

Copilot Lvl 2
Message 3 of 3

Re: Tag push jobs are not being triggered

Thank you @BrightRan for trying this out! It worked for me when I deleted the tags from remote and pushed them again today.