From 78cf249473f5c71f9a0c9cda786099b7f69e072c Mon Sep 17 00:00:00 2001 From: loloicci Date: Wed, 14 Feb 2024 21:56:18 +0900 Subject: [PATCH 1/4] ci: change test internal libwasmvm binary triggered only build PR --- .github/workflows/builds_and_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/builds_and_tests.yml b/.github/workflows/builds_and_tests.yml index 178b76a7..1cd31154 100644 --- a/.github/workflows/builds_and_tests.yml +++ b/.github/workflows/builds_and_tests.yml @@ -108,6 +108,7 @@ jobs: run: ./devtools/check_shellscript_lint.sh test_internal_shared_lib: + if: ${{ github.event.pusher.name == 'finschia-auto-pr[bot]' }} runs-on: ubuntu-latest env: GORACE: "halt_on_error=1" From 245503c54da328160b6de9ba792950247f36f844 Mon Sep 17 00:00:00 2001 From: loloicci Date: Wed, 14 Feb 2024 21:56:30 +0900 Subject: [PATCH 2/4] chore: format workflow --- .github/workflows/deploy_to_git.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy_to_git.yml b/.github/workflows/deploy_to_git.yml index 99fc66d6..d9d2894e 100644 --- a/.github/workflows/deploy_to_git.yml +++ b/.github/workflows/deploy_to_git.yml @@ -23,7 +23,7 @@ jobs: # and .dll builds are not deterministic. # Deactivating this step to avoid polluting the git hostory. os: [linux, macos] - include: + include: - os: linux dockerfile_name: centos7 shared_library_extension: so @@ -115,7 +115,7 @@ jobs: gh pr list --state open --json author,number | jq -r '.[] | select(.author.login == "app/finschia-auto-pr") | .number' | while read -r pr_number; do gh pr close -d -c "This pr is out of date." $pr_number done - env: + env: GH_TOKEN: ${{ steps.generate-token.outputs.token }} - name: Get latest PR id: prn @@ -166,7 +166,7 @@ jobs: runs-on: ubuntu-latest needs: [build_shared_library, deploy_to_git] if: | - always() && + always() && ( needs.build_shared_library.result=='success' || needs.build_shared_library.result=='skipped' ) && ( github.event.pusher.name == 'finschia-auto-pr[bot]' || needs.deploy_to_git.outputs.updated=='false' ) outputs: @@ -195,7 +195,7 @@ jobs: name: Push Tag needs: [build_shared_library, get-version] if: | - always() && + always() && ( needs.build_shared_library.result=='success' || needs.build_shared_library.result=='skipped' ) && ( needs.get-version.outputs.package-version != needs.get-version.outputs.latest-tag ) runs-on: ubuntu-latest @@ -210,7 +210,7 @@ jobs: name: Update releases needs: [build_shared_library, push-tag] if: | - always() && + always() && ( needs.build_shared_library.result=='success' || needs.build_shared_library.result=='skipped' ) && ( needs.push-tag.result=='success' ) runs-on: ubuntu-latest From cca910ea58fe7e005d96624f407e3d5267d64505 Mon Sep 17 00:00:00 2001 From: loloicci Date: Wed, 14 Feb 2024 21:59:20 +0900 Subject: [PATCH 3/4] ci: change semantic commit message tag of auto build --- .github/workflows/deploy_to_git.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_git.yml b/.github/workflows/deploy_to_git.yml index d9d2894e..cc21111e 100644 --- a/.github/workflows/deploy_to_git.yml +++ b/.github/workflows/deploy_to_git.yml @@ -127,7 +127,7 @@ jobs: run: | git config user.name "finschia-auto-pr[bot]" git config user.email "141415241+finschia-auto-pr[bot]@users.noreply.github.com" - git commit -m "chore: auto generate shared library" + git commit -m "build: auto generate shared library" - name: Create pull request if: steps.cd.outputs.need_update=='true' id: cpr @@ -138,7 +138,7 @@ jobs: branch: auto_shared_library_${{ steps.prn.outputs.latest_pr_number }} base: ${{ github.ref_name }} delete-branch: true - title: 'chore: (auto)update shared library' + title: 'build: (auto)update shared library' body: | # Description Update shared library From 5f043bc3bb1afb77fa4983c076505c5a2cddda5a Mon Sep 17 00:00:00 2001 From: loloicci Date: Wed, 14 Feb 2024 22:05:51 +0900 Subject: [PATCH 4/4] ci: change the test name --- .github/workflows/builds_and_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/builds_and_tests.yml b/.github/workflows/builds_and_tests.yml index 1cd31154..4561b1f1 100644 --- a/.github/workflows/builds_and_tests.yml +++ b/.github/workflows/builds_and_tests.yml @@ -107,7 +107,7 @@ jobs: - name: Run shellcheck run: ./devtools/check_shellscript_lint.sh - test_internal_shared_lib: + test_internal_shared_lib_on_auto_build_pr: if: ${{ github.event.pusher.name == 'finschia-auto-pr[bot]' }} runs-on: ubuntu-latest env: