From 5d91835359ad2790a8496e87600f3985a2f2ce32 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Tue, 2 Jan 2024 16:57:28 +0300 Subject: [PATCH 01/20] add workflow files --- .github/workflows/dev-docker-publish.yml | 23 +++++++++ .github/workflows/license_check.yml | 63 ++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 .github/workflows/dev-docker-publish.yml create mode 100644 .github/workflows/license_check.yml diff --git a/.github/workflows/dev-docker-publish.yml b/.github/workflows/dev-docker-publish.yml new file mode 100644 index 0000000..7495805 --- /dev/null +++ b/.github/workflows/dev-docker-publish.yml @@ -0,0 +1,23 @@ +name: Dev build and publish Docker distributions to Github Container Registry ghcr.io + +on: + push: + branches-ignore: + - master + - version-* + - dependabot** + paths-ignore: + - README.md + +env: + APP_NAME: ${{ github.repository }} + BRANCH: ${{ github.ref }} + +jobs: + build-job: + uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main + with: + build-target: 'Docker' + docker-username: ${{ github.actor }} + secrets: + docker-password: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml new file mode 100644 index 0000000..a255c88 --- /dev/null +++ b/.github/workflows/license_check.yml @@ -0,0 +1,63 @@ +name: Check licenses + +on: + push: + branches-ignore: + - master + - version-* + - dependabot** + paths-ignore: + - README.md + +env: + APP_NAME: ${{ github.repository }} + BRANCH: ${{ github.ref }} + +jobs: + check_licenses: + runs-on: ubuntu-latest + steps: + - name: checkout actions + uses: actions/checkout@v2 + + - name: Install jq env + run: | + sudo apt-get update + sudo apt-get install -y jq + - name: Download script + run: | + wget -q -O check_licenses.sh https://raw.githubusercontent.com/th2-net/.github/th2-1836-json-files-update/license-compliance/check_licenses.sh + chmod +x ./check_licenses.sh + + - name: Run check_licenses script + run: ./check_licenses.sh java + id: run_script + + - name: Get version + run: + VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') + + - name: Uploading results + if: always() + uses: actions/upload-artifact@v3 + with: + name: licenses_check-$APP_NAME-$VERSION + path: ./licenses_check/ + + - name: Results checking + id: result-check + run: | + line_count=$(wc -l < ./licenses_check/failed_licenses.csv) + if [[ $line_count -gt 1 ]]; then + echo "FAILED due to unknown/failed licenses found" + exit 1 + else + echo "PASSED: licenses check successfull" + exit 0 + fi + continue-on-error: false + +# - name: Set workflow status +# run: echo "::set-output name=status::Failure" +# if: steps.set_status.outputs.result == 'FAILED due to unknown licenses found' +# continue-on-error: false From 60853c355950b447523a6064327501e58b20f00f Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 15:20:45 +0300 Subject: [PATCH 02/20] version update for checkout action --- .github/workflows/license_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index a255c88..8628e45 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout actions - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install jq env run: | From 4f0d683d27fb4795c05f3855cd6ec1a0ed01c8be Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 15:48:18 +0300 Subject: [PATCH 03/20] fix names --- .github/workflows/license_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 8628e45..776d4e9 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -41,7 +41,7 @@ jobs: if: always() uses: actions/upload-artifact@v3 with: - name: licenses_check-$APP_NAME-$VERSION + name: licenses_check-${{ APP_NAME }}-${{ VERSION }} path: ./licenses_check/ - name: Results checking From d35e3ba9c5f7e16861a78089bd7366cc825b7bc6 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 16:05:31 +0300 Subject: [PATCH 04/20] fix namme convention --- .github/workflows/license_check.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 776d4e9..1cb5c55 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -10,8 +10,9 @@ on: - README.md env: - APP_NAME: ${{ github.repository }} - BRANCH: ${{ github.ref }} + APP_NAME: ${{ github.repository }} + BRANCH: ${{ github.ref }} + VERSION: '' jobs: check_licenses: @@ -34,14 +35,13 @@ jobs: id: run_script - name: Get version - run: - VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') + run: echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,' >> $VERSION - name: Uploading results if: always() uses: actions/upload-artifact@v3 with: - name: licenses_check-${{ APP_NAME }}-${{ VERSION }} + name: licenses_check-${{ env.APP_NAME }}-${{ env.VERSION }} path: ./licenses_check/ - name: Results checking From 597a02b67e9255e8776af2dbe2e10376d2328ec0 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 16:35:14 +0300 Subject: [PATCH 05/20] change name --- .github/workflows/license_check.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 1cb5c55..a45b561 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -12,7 +12,6 @@ on: env: APP_NAME: ${{ github.repository }} BRANCH: ${{ github.ref }} - VERSION: '' jobs: check_licenses: @@ -35,7 +34,9 @@ jobs: id: run_script - name: Get version - run: echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,' >> $VERSION + run: + VERSION=$( echo "${{ github.ref }}" | awk -F '/' '{print $NF}' ) + APP_NAME=$( echo "${{ github.repository }}" | awk -F '/' '{print $NF}' ) - name: Uploading results if: always() From d757bdcd1f4f8970cb17beb6fa65bfedc1576008 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 16:39:20 +0300 Subject: [PATCH 06/20] fix --- .github/workflows/license_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index a45b561..f59904a 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -35,8 +35,8 @@ jobs: - name: Get version run: - VERSION=$( echo "${{ github.ref }}" | awk -F '/' '{print $NF}' ) - APP_NAME=$( echo "${{ github.repository }}" | awk -F '/' '{print $NF}' ) + echo "${{ github.ref }}" | awk -F '/' '{print $NF}' > $VERSION + echo "${{ github.repository }}" | awk -F '/' '{print $NF}' > $APP_NAME - name: Uploading results if: always() From 72b09488e2ebcfb7fcf5eccf4d9eaea9063842bf Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 18:23:16 +0300 Subject: [PATCH 07/20] refactor to get version properly --- .github/workflows/license_check.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index f59904a..d7af471 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -12,10 +12,19 @@ on: env: APP_NAME: ${{ github.repository }} BRANCH: ${{ github.ref }} + runsOn: "ubuntu-20.04" jobs: + prebuild-job: + name: Prebuild Job + uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main + with: + runsOn: ${{ env.runsOn }} + check_licenses: - runs-on: ubuntu-latest + runs-on: ${{ env.runsOn }} + needs: [prebuild-job] + steps: - name: checkout actions uses: actions/checkout@v4 @@ -33,16 +42,16 @@ jobs: run: ./check_licenses.sh java id: run_script - - name: Get version - run: - echo "${{ github.ref }}" | awk -F '/' '{print $NF}' > $VERSION - echo "${{ github.repository }}" | awk -F '/' '{print $NF}' > $APP_NAME +# - name: Get version +# run: +# echo "${{ github.ref }}" | awk -F '/' '{print $NF}' > $VERSION +# echo "${{ github.repository }}" | awk -F '/' '{print $NF}' > $APP_NAME - name: Uploading results if: always() uses: actions/upload-artifact@v3 with: - name: licenses_check-${{ env.APP_NAME }}-${{ env.VERSION }} + name: licenses_check-${{ needs.prebuild-job.outputs.version }} path: ./licenses_check/ - name: Results checking From 5afb9399b049a0c64d424d1a6777486c392627e0 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 18:28:18 +0300 Subject: [PATCH 08/20] change variables type --- .github/workflows/license_check.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index d7af471..e135db0 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -1,6 +1,12 @@ name: Check licenses on: + workflow_call: + inputs: + runsOn: + required: false + type: string + default: 'ubuntu-20.04' push: branches-ignore: - master @@ -9,20 +15,20 @@ on: paths-ignore: - README.md -env: - APP_NAME: ${{ github.repository }} - BRANCH: ${{ github.ref }} - runsOn: "ubuntu-20.04" +#env: +# APP_NAME: ${{ github.repository }} +# BRANCH: ${{ github.ref }} +# runsOn: "ubuntu-20.04" jobs: prebuild-job: name: Prebuild Job uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main with: - runsOn: ${{ env.runsOn }} + runsOn: ${{ inputs.runsOn }} check_licenses: - runs-on: ${{ env.runsOn }} + runs-on: ${{ inputs.runsOn }} needs: [prebuild-job] steps: From 37386a83df0d6002becb4913c85af6f6e7124a99 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 18:30:23 +0300 Subject: [PATCH 09/20] fix --- .github/workflows/license_check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index e135db0..9092372 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -28,7 +28,8 @@ jobs: runsOn: ${{ inputs.runsOn }} check_licenses: - runs-on: ${{ inputs.runsOn }} + with: + runsOn: ${{ inputs.runsOn }} needs: [prebuild-job] steps: From 5cec721ba787c8715f91ad770ee8b01528178d0c Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 3 Jan 2024 18:42:28 +0300 Subject: [PATCH 10/20] refactor var --- .github/workflows/license_check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 9092372..0343df9 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -28,8 +28,7 @@ jobs: runsOn: ${{ inputs.runsOn }} check_licenses: - with: - runsOn: ${{ inputs.runsOn }} + runs-on: 'ubuntu-20.04' needs: [prebuild-job] steps: From 9d649873335d0950f670d9881107179450f38f91 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Thu, 4 Jan 2024 11:51:40 +0300 Subject: [PATCH 11/20] add output --- .github/workflows/license_check.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 0343df9..403b81e 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -7,6 +7,10 @@ on: required: false type: string default: 'ubuntu-20.04' + outputs: + version: + description: "Generated version of the image" + value: ${{ jobs.prebuild-job.outputs.version }} push: branches-ignore: - master @@ -25,7 +29,7 @@ jobs: name: Prebuild Job uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main with: - runsOn: ${{ inputs.runsOn }} + runsOn: 'ubuntu-20.04' check_licenses: runs-on: 'ubuntu-20.04' From a3a84d16e9b89f93c2bb2965eef087a1a9fd4c6b Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Thu, 4 Jan 2024 20:17:58 +0300 Subject: [PATCH 12/20] add component name --- .github/workflows/license_check.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 403b81e..8588469 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -52,16 +52,15 @@ jobs: run: ./check_licenses.sh java id: run_script -# - name: Get version -# run: -# echo "${{ github.ref }}" | awk -F '/' '{print $NF}' > $VERSION -# echo "${{ github.repository }}" | awk -F '/' '{print $NF}' > $APP_NAME + - name: Get repository name + run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $NF}')" >> $GITHUB_OUTPUT + id: meta - name: Uploading results if: always() uses: actions/upload-artifact@v3 with: - name: licenses_check-${{ needs.prebuild-job.outputs.version }} + name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }} path: ./licenses_check/ - name: Results checking From e8c015a11fd33d9b752da37ead4fc6909a56568c Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Fri, 5 Jan 2024 14:51:16 +0300 Subject: [PATCH 13/20] refactor after the conversation --- .github/workflows/license_check.yml | 46 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 8588469..fb10bde 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -1,16 +1,6 @@ name: Check licenses on: - workflow_call: - inputs: - runsOn: - required: false - type: string - default: 'ubuntu-20.04' - outputs: - version: - description: "Generated version of the image" - value: ${{ jobs.prebuild-job.outputs.version }} push: branches-ignore: - master @@ -48,9 +38,19 @@ jobs: wget -q -O check_licenses.sh https://raw.githubusercontent.com/th2-net/.github/th2-1836-json-files-update/license-compliance/check_licenses.sh chmod +x ./check_licenses.sh - - name: Run check_licenses script + - name: Run check_licenses script and output if failed cases exist run: ./check_licenses.sh java id: run_script + run: | + ./check_licenses.sh java + line_count=$(wc -l < ./licenses_check/failed_licenses.csv) + if [[ $line_count -gt 1 ]]; then + echo "FAILED due to unknown/failed licenses found" + exit 1 + else + echo "PASSED: licenses check successfull" + exit 0 + fi - name: Get repository name run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $NF}')" >> $GITHUB_OUTPUT @@ -63,18 +63,18 @@ jobs: name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }} path: ./licenses_check/ - - name: Results checking - id: result-check - run: | - line_count=$(wc -l < ./licenses_check/failed_licenses.csv) - if [[ $line_count -gt 1 ]]; then - echo "FAILED due to unknown/failed licenses found" - exit 1 - else - echo "PASSED: licenses check successfull" - exit 0 - fi - continue-on-error: false +# - name: Results checking +# id: result-check +# run: | +# line_count=$(wc -l < ./licenses_check/failed_licenses.csv) +# if [[ $line_count -gt 1 ]]; then +# echo "FAILED due to unknown/failed licenses found" +# exit 1 +# else +# echo "PASSED: licenses check successfull" +# exit 0 +# fi +# continue-on-error: false # - name: Set workflow status # run: echo "::set-output name=status::Failure" From f8144fd8cdaeedeb330f30cd097719a2d1d08088 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Fri, 5 Jan 2024 15:04:00 +0300 Subject: [PATCH 14/20] fix typo --- .github/workflows/license_check.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index fb10bde..e85b298 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -39,7 +39,6 @@ jobs: chmod +x ./check_licenses.sh - name: Run check_licenses script and output if failed cases exist - run: ./check_licenses.sh java id: run_script run: | ./check_licenses.sh java From 0184f7109bebe9164ec9193d32a7de7da2204ebe Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Fri, 5 Jan 2024 15:22:14 +0300 Subject: [PATCH 15/20] add condition --- .github/workflows/license_check.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index e85b298..cd16db4 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -52,29 +52,17 @@ jobs: fi - name: Get repository name + if: ${{ !cancelled() }} run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $NF}')" >> $GITHUB_OUTPUT id: meta - name: Uploading results - if: always() + if: ${{ !cancelled() }} uses: actions/upload-artifact@v3 with: name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }} path: ./licenses_check/ -# - name: Results checking -# id: result-check -# run: | -# line_count=$(wc -l < ./licenses_check/failed_licenses.csv) -# if [[ $line_count -gt 1 ]]; then -# echo "FAILED due to unknown/failed licenses found" -# exit 1 -# else -# echo "PASSED: licenses check successfull" -# exit 0 -# fi -# continue-on-error: false - # - name: Set workflow status # run: echo "::set-output name=status::Failure" # if: steps.set_status.outputs.result == 'FAILED due to unknown licenses found' From 97310aa40bc0bd168b119239f17ac17d111089fd Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Fri, 5 Jan 2024 15:26:25 +0300 Subject: [PATCH 16/20] text corrections --- .github/workflows/license_check.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index cd16db4..82ad79f 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -9,11 +9,6 @@ on: paths-ignore: - README.md -#env: -# APP_NAME: ${{ github.repository }} -# BRANCH: ${{ github.ref }} -# runsOn: "ubuntu-20.04" - jobs: prebuild-job: name: Prebuild Job @@ -38,7 +33,7 @@ jobs: wget -q -O check_licenses.sh https://raw.githubusercontent.com/th2-net/.github/th2-1836-json-files-update/license-compliance/check_licenses.sh chmod +x ./check_licenses.sh - - name: Run check_licenses script and output if failed cases exist + - name: Run check_licenses script id: run_script run: | ./check_licenses.sh java From c2d6ac888d6418514967820a04bc821d1554b462 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Wed, 21 Feb 2024 13:14:23 +0300 Subject: [PATCH 17/20] add ability to run manually from github --- .github/workflows/license_check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 82ad79f..70b89a6 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -1,6 +1,7 @@ name: Check licenses -on: +on: + workflow_dispatch: push: branches-ignore: - master From 4dac2d6af9707c2bca7d794608157dff7979b80c Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Thu, 22 Feb 2024 14:16:32 +0300 Subject: [PATCH 18/20] update to fresh action --- .github/workflows/license_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 70b89a6..b71d17c 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -39,7 +39,7 @@ jobs: run: | ./check_licenses.sh java line_count=$(wc -l < ./licenses_check/failed_licenses.csv) - if [[ $line_count -gt 1 ]]; then + if [[ $line_count -ge 1 ]]; then echo "FAILED due to unknown/failed licenses found" exit 1 else @@ -54,7 +54,7 @@ jobs: - name: Uploading results if: ${{ !cancelled() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }} path: ./licenses_check/ From 36126448f656051ae7ffcfb196fbee1c849336c1 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Tue, 7 May 2024 14:42:00 +0300 Subject: [PATCH 19/20] change version of runOS --- .github/workflows/license_check.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index b71d17c..76a788d 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -15,10 +15,10 @@ jobs: name: Prebuild Job uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main with: - runsOn: 'ubuntu-20.04' + runsOn: 'ubuntu-22.04' check_licenses: - runs-on: 'ubuntu-20.04' + runs-on: 'ubuntu-22.04' needs: [prebuild-job] steps: @@ -58,8 +58,3 @@ jobs: with: name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }} path: ./licenses_check/ - -# - name: Set workflow status -# run: echo "::set-output name=status::Failure" -# if: steps.set_status.outputs.result == 'FAILED due to unknown licenses found' -# continue-on-error: false From 8b6fdd4a99ba484716a4540cf5407e20a8bc22d5 Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Tue, 7 May 2024 16:12:13 +0300 Subject: [PATCH 20/20] prepare to the master merge --- .github/workflows/dev-docker-publish.yml | 23 ----------------------- .github/workflows/license_check.yml | 4 ---- 2 files changed, 27 deletions(-) delete mode 100644 .github/workflows/dev-docker-publish.yml diff --git a/.github/workflows/dev-docker-publish.yml b/.github/workflows/dev-docker-publish.yml deleted file mode 100644 index 7495805..0000000 --- a/.github/workflows/dev-docker-publish.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Dev build and publish Docker distributions to Github Container Registry ghcr.io - -on: - push: - branches-ignore: - - master - - version-* - - dependabot** - paths-ignore: - - README.md - -env: - APP_NAME: ${{ github.repository }} - BRANCH: ${{ github.ref }} - -jobs: - build-job: - uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main - with: - build-target: 'Docker' - docker-username: ${{ github.actor }} - secrets: - docker-password: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 76a788d..bc45c41 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -3,10 +3,6 @@ name: Check licenses on: workflow_dispatch: push: - branches-ignore: - - master - - version-* - - dependabot** paths-ignore: - README.md