简体   繁体   中英

GitHub Workflow on tags not started with semantic release

I have a workflow that should run whenever a new tag is pushed to GitHub:

on:
  push:
    tags:
      - '*'

I use the semantic release plugin to automatically create new versions ( xx.yy.zz ) whenever something is merged into the master. This automatically creates new tags and releases on GitHub. However, the workflow for new tags is not executed for these new tags. But when I create a new tag manually using git tag test-tag and pushing it git push --tags the workflow is executed. Both the semantic release and the manually created tags I can see in GitHub in the tags section.

What is the difference between these two approaches, that my workflow is being executed for manual pushes but not for pushes by semantic release?

GitHub recently introduced changes , that will make workflows not trigger if [skip ci] is part of the commit message. Semantic release creates a commit message with [skip ci] per default and therefore the workflow was not executed. I solved my problem by creating a custom semantic release commit message.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM