Skip to content

New tag does not trigger an event #25973

Discussion options

You must be logged in to vote

Hi @ivanovaleksandar,

Glad to see you in Github Community Forum!

This is due to events triggered by the GITHUB_TOKEN will not create a new workflow run. It’s mentioned in the official doc here.

‘actions/checkout’ will persist GITHUB_TOKEN for latter git operations, hence the tag is pushed with GITHUB_TOKEN. You can add “persist-crendetials: false” to avoid this.

    - uses: actions/checkout@v2  
      with:
        fetch-depth: 0
        persist-credentials: false

You can create a secret wih Personal Access Token and use it to push a tag.

I tried to use rest api to create a tag, code sample as below, it use PAT and can trigger workflow.

     - name: push git tag
       run: |
         cu…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants