Compare commits

...
12 Commits
Author SHA1 Message Date
Dawid L Jablonski 124ed9ce69 [ci:force] 2023-03-31 12:54:23 +02:00
Dawid L Jablonski d2cf66cb5d [ci:force] 2023-03-31 12:42:00 +02:00
Dawid L Jablonski 0a4a0679c9 Corrected condition 2023-03-31 12:28:31 +02:00
Dawid L Jablonski c26ee4f1aa [ci:force] 2023-03-31 10:17:08 +02:00
Dawid L Jablonski 6c55cc50bd [ci:force] 2023-03-31 10:14:27 +02:00
Dawid L Jablonski 37e067cc56 [ci:force] 2023-03-30 17:32:19 +02:00
Dawid L Jablonski 9755933b46 [ci:force] 2023-03-30 16:52:09 +02:00
Dawid L Jablonski e701daad77 [ci:force] 2023-03-30 15:25:13 +02:00
Dawid L Jablonski 720280d612 [ci:force] 2023-03-30 15:01:38 +02:00
Dawid L Jablonski 1d555dfcd1 [ci:force] 2023-03-30 14:34:15 +02:00
Dawid L Jablonski 1440455eb9 Corrected one line 2023-03-30 12:52:56 +02:00
Dawid L Jablonski a3019b1602 Corrected conditions on ng2' 2023-03-30 12:07:29 +02:00
+21 -20
View File
@@ -93,6 +93,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check package-lock.json version
run: |
if [[ $(jq '.lockfileVersion == 2' package-lock.json) == "true" ]] ; then
@@ -107,26 +108,24 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get branch name
uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.36.0
- name: Save commit message
uses: Alfresco/alfresco-build-tools/.github/actions/get-commit-message@v1.36.0
- name: ci:force flag parser
shell: bash
run: |
if [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.actor }}" == "dependabot[bot]" ]; then
echo -e "\033[32mci:force check can be skipped\033[0m"
exit 0
else
git fetch --all
message=$(git log --format=%B -n 1 origin/$BRANCH_NAME)
echo "COMMIT_MESSAGE=$message" >> $GITHUB_ENV
export COMMIT_MESSAGE=$message
if [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
echo "Forcing CI to run with commit flag [ci:force]."
echo CI_FORCE_RUN=true >> $GITHUB_ENV
echo "BREAK_ACTION=true" >> $GITHUB_ENV
fi
echo -e "\033[32mci:force check can be skipped\033[0m"
skip_check="true"
elif [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
echo -e "\033[32m[ci:force] flag detected. No need for approval.\033[0m"
skip_check="true"
fi
- name: Get PR number
@@ -134,7 +133,7 @@ jobs:
uses: kamatama41/get-pr-number-action@5c77b38a1b4974ebf8a9521a689f38a5898eadd6
id: action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: show pr number
shell: bash
@@ -147,10 +146,12 @@ jobs:
GH_TOKEN: ${{ github.token }}
skip_check: "false"
run: |
echo "ci force run: $CI_FORCE_RUN"
if [ "${CI_FORCE_RUN}" == "true" ]; then
echo -e "\033[32m[ci:force] flag detected. No need for approval.\033[0m"
skip_check="true"
if [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.actor }}" == "dependabot[bot]" ]; then
echo -e "\033[32mci:force check can be skipped\033[0m"
skip_check="true"
elif [[ "$COMMIT_MESSAGE" == *"[ci:force]"* ]]; then
echo -e "\033[32m[ci:force] flag detected. No need for approval.\033[0m"
skip_check="true"
fi
if [ "${{ github.actor }}" == "dependabot[bot]" ] || [ "${{ github.actor }}" == "alfresco-build" ]; then
@@ -190,7 +191,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- uses: ./.github/actions/setup
- name: install
@@ -257,7 +258,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all tags and branches
fetch-depth: 0 # Fetch all history for all tags and branches
- uses: ./.github/actions/setup
- uses: ./.github/actions/download-node-modules-and-artifacts
- run: nx affected:build $NX_CALCULATION_FLAGS --prod