Workflows triggered by tag push not running

Hi,

I have 3 workflows set up on a public repo. I use a PAT in them where needed.

The first runs on push (and works fine). Its purpose is to create a release if needed and part of that is to push a new Git tag.

I had another workflow which was triggered by tag pushes. It was also working fine until I added the third workflow which is also triggered by tag pushes. Since adding it, those 2 workflows run intermittently and I am not sure why or how to debug.

Any help or suggestions are appreciated

When you use the repository’s GITHUB_TOKEN to perform tasks on behalf of the GitHub Actions app, events triggered by the GITHUB_TOKEN will not create a new workflow run. This prevents you from accidentally creating recursive workflow runs.

In your case, you’re using a PAT which does allow for the triggering of new workflow runs. What is most likely happening is that the triggering of one workflow is also triggering your other workflows as well.

If it isn’t needed to use a PAT, we recommend switching to a GITHUB_TOKEN if possible.

Hi,

Thanks for getting back to me.

We need to use a PAT because we access private repos in the workflow.

I didn’t understand what you meant by

What is most likely happening is that the triggering of one workflow is also triggering your other workflows as well.

The workflows we have are:

  1. on push on any branch: run tests and release (will create and push a tag if on the release branch)
  2. on tag push: update another repo with the new version released
  3. on tag push: deploy to gh-pages

Workflow number 1 works, but number 2 and 3 sometimes work and sometimes they done.

Actual links to runs are much easier to explain.

If you aren’t using a PAT, and you push a tag, that action will not trigger additional workflows.

If you are using a PAT to push a tag, that should trigger additional workflows.