Skip to content

Commit

Permalink
ci: change test internal libwasmvm binary triggered only build PR (#143)
Browse files Browse the repository at this point in the history
* ci: change test internal libwasmvm binary triggered only build PR

* chore: format workflow

* ci: change semantic commit message tag of auto build

* ci: change the test name
  • Loading branch information
loloicci authored Feb 16, 2024
1 parent 9b0e32a commit 7579f34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/builds_and_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ 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:
GORACE: "halt_on_error=1"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy_to_git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7579f34

Please sign in to comment.