【问题标题】:Github Actions: Run workflow only on latest tag?Github Actions:仅在最新标签上运行工作流?
【发布时间】:2021-11-03 20:58:05
【问题描述】:
on:
  push:
    tags:
      - '*'

这将在所有推送的新标签上运行工作流。有没有办法只在推送的新标签中的最新标签上运行工作流?

【问题讨论】:

标签: github-actions


【解决方案1】:

试试这个:

on:
  push:
    branches:
      - 'refs/tags/*'

或者这个:

on:
  push:
    tags:
      - *

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-01-05
    • 2020-03-20
    • 2020-04-02
    • 1970-01-01
    • 2022-01-10
    • 2022-11-02
    • 2020-01-01
    • 2022-10-25
    相关资源
    最近更新 更多