Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commitbot features #989

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/commit-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#

Expand All @@ -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
Expand Down
Loading