mirror of
https://github.com/boostorg/boost.git
synced 2025-04-11 07:41:06 +00:00
Commitbot features
This commit is contained in:
parent
c89e626766
commit
3d08935c64
1 changed files with 5 additions and 5 deletions
10
.github/workflows/commit-bot.yml
vendored
10
.github/workflows/commit-bot.yml
vendored
|
@ -8,7 +8,7 @@ name: Commit Bot
|
|||
# "If an action pushes code using the repository's GITHUB_TOKEN, a new workflow will not run"
|
||||
#
|
||||
# - Processing of either the 'master' or 'develop' branch may be stopped by creating the variables
|
||||
# vars.block_master or vars.block_develop with any value.
|
||||
# vars.block_master or vars.block_develop with the value "yes".
|
||||
# https://github.com/boostorg/boost/settings/variables/actions
|
||||
#
|
||||
|
||||
|
@ -34,19 +34,19 @@ jobs:
|
|||
set -xe
|
||||
branches=""
|
||||
if [[ "${{ github.event_name }}" == "push" ]]; then
|
||||
if [[ ! -n "${{ vars.block_master }}" && "${{ github.ref_name }}" == "master" ]]; then
|
||||
if [[ ! "${{ vars.block_master }}" == "yes" && "${{ github.ref_name }}" == "master" ]]; then
|
||||
branches="master"
|
||||
elif [[ ! -n "${{ vars.block_develop }}" && "${{ github.ref_name }}" == "develop" ]]; then
|
||||
elif [[ ! "${{ vars.block_develop }}" == "yes" && "${{ github.ref_name }}" == "develop" ]]; then
|
||||
branches="develop"
|
||||
else
|
||||
branches="${{ github.ref_name }}"
|
||||
fi
|
||||
else
|
||||
# from a schedule:
|
||||
if [[ ! -n "${{ vars.block_master }}" ]]; then
|
||||
if [[ ! "${{ vars.block_master }}" == "yes" ]]; then
|
||||
branches="master"
|
||||
fi
|
||||
if [[ ! -n "${{ vars.block_develop }}" ]]; then
|
||||
if [[ ! "${{ vars.block_develop }}" == "yes" ]]; then
|
||||
branches="${branches} develop"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue