Git流量释放分支

问题描述

我正在用alerting在公司上实施git flow,但是在github上有一种行为无法在github action工作流程上使用。

开始新发行版时,%22分支将创建为git flow release start 1.0.0。仅当我使用git flow启动新的回购协议时才发生这种情况,其他所有回购协议都在bitbucket上创建,然后导入到github。

其他导入的分支名称release/1.0.0,版本为标签

工作流文件上的触发器为:

release

但是我已经尝试过this collection

name: Release

on:
  push:
    branches: [ release ]
  pull_request:
    branches: [ release ] 

无济于事,为解决此问题,我删除了奇怪的分支并创建了一个[ release/*.*.* ] [ release/* ] [ release/1.0.0 ] 分支。

解决方法

使用**怎么办?

on:
  push:
    branches:
      - 'release/**'

参考:https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-including-branches-and-tags