mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
HXOR-193 in the pull-request flow, branch name in the flag parser should be managed better (#8405)
* Changed a structure * Added $ * Added missing ) * [ci:force]
This commit is contained in:
committed by
GitHub
parent
ad67e0cc37
commit
c884b0625b
6
.github/workflows/pull-request.yml
vendored
6
.github/workflows/pull-request.yml
vendored
@@ -108,6 +108,9 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get branch name
|
||||||
|
uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.36.0
|
||||||
|
|
||||||
- name: ci:force flag parser
|
- name: ci:force flag parser
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -116,7 +119,8 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
git fetch --all
|
git fetch --all
|
||||||
message=$(git log --format=%B -n 1 origin/${{ github.head_ref }})
|
echo "$BRANCH_NAME"
|
||||||
|
message=$(git log --format=%B -n 1 origin/$BRANCH_NAME)
|
||||||
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
|
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
|
||||||
export COMMIT_MESSAGE=$message
|
export COMMIT_MESSAGE=$message
|
||||||
if [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
|
if [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
|
||||||
|
Reference in New Issue
Block a user