File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ name: Commit Bot
8
8
# "If an action pushes code using the repository's GITHUB_TOKEN, a new workflow will not run"
9
9
#
10
10
# - 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" .
12
12
# https://github.com/boostorg/boost/settings/variables/actions
13
13
#
14
14
@@ -34,19 +34,19 @@ jobs:
34
34
set -xe
35
35
branches=""
36
36
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
38
38
branches="master"
39
- elif [[ ! -n "${{ vars.block_develop }}" && "${{ github.ref_name }}" == "develop" ]]; then
39
+ elif [[ ! "${{ vars.block_develop }}" == "yes " && "${{ github.ref_name }}" == "develop" ]]; then
40
40
branches="develop"
41
41
else
42
42
branches="${{ github.ref_name }}"
43
43
fi
44
44
else
45
45
# from a schedule:
46
- if [[ ! -n "${{ vars.block_master }}" ]]; then
46
+ if [[ ! "${{ vars.block_master }}" == "yes " ]]; then
47
47
branches="master"
48
48
fi
49
- if [[ ! -n "${{ vars.block_develop }}" ]]; then
49
+ if [[ ! "${{ vars.block_develop }}" == "yes " ]]; then
50
50
branches="${branches} develop"
51
51
fi
52
52
fi
You can’t perform that action at this time.
0 commit comments