mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-24 14:31:41 +00:00
fix affected flag
This commit is contained in:
11
.github/actions/before-install/action.yml
vendored
11
.github/actions/before-install/action.yml
vendored
@@ -31,15 +31,10 @@ runs:
|
||||
|
||||
- name: affected:* flag parser
|
||||
shell: bash
|
||||
if: ${{ contains(github.event.head_commit.message , '[affected:*]') }}
|
||||
run: |
|
||||
git fetch --all
|
||||
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
|
||||
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
|
||||
export COMMIT_MESSAGE=$message
|
||||
if [[ "$COMMIT_MESSAGE" == [affected:*] ]]; then
|
||||
echo "Setting up CI to run with commit flag [affected:*] flag."
|
||||
echo "BREAK_ACTION=true" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "Setting up CI to run with commit flag [affected:*] flag."
|
||||
echo "BREAK_ACTION=true" >> $GITHUB_ENV
|
||||
|
||||
- name: PULL_REQUEST event
|
||||
if: ${{ env.BREAK_ACTION == false && github.event_name == 'pull_request' && !github.event.pull_request.merged }}
|
||||
|
Reference in New Issue
Block a user