Skip to content

Commit 3d08935

Browse files
committed
Commitbot features
1 parent c89e626 commit 3d08935

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/commit-bot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Commit Bot
88
# "If an action pushes code using the repository's GITHUB_TOKEN, a new workflow will not run"
99
#
1010
# - Processing of either the 'master' or 'develop' branch may be stopped by creating the variables
11-
# vars.block_master or vars.block_develop with any value.
11+
# vars.block_master or vars.block_develop with the value "yes".
1212
# https://github.com/boostorg/boost/settings/variables/actions
1313
#
1414

@@ -34,19 +34,19 @@ jobs:
3434
set -xe
3535
branches=""
3636
if [[ "${{ github.event_name }}" == "push" ]]; then
37-
if [[ ! -n "${{ vars.block_master }}" && "${{ github.ref_name }}" == "master" ]]; then
37+
if [[ ! "${{ vars.block_master }}" == "yes" && "${{ github.ref_name }}" == "master" ]]; then
3838
branches="master"
39-
elif [[ ! -n "${{ vars.block_develop }}" && "${{ github.ref_name }}" == "develop" ]]; then
39+
elif [[ ! "${{ vars.block_develop }}" == "yes" && "${{ github.ref_name }}" == "develop" ]]; then
4040
branches="develop"
4141
else
4242
branches="${{ github.ref_name }}"
4343
fi
4444
else
4545
# from a schedule:
46-
if [[ ! -n "${{ vars.block_master }}" ]]; then
46+
if [[ ! "${{ vars.block_master }}" == "yes" ]]; then
4747
branches="master"
4848
fi
49-
if [[ ! -n "${{ vars.block_develop }}" ]]; then
49+
if [[ ! "${{ vars.block_develop }}" == "yes" ]]; then
5050
branches="${branches} develop"
5151
fi
5252
fi

0 commit comments

Comments
 (0)