Skip to content

Commit

Permalink
Add: adjust action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyang-ee committed Aug 5, 2023
1 parent 78194be commit a3d0cd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
push:
branches:
- "*"
- "!main"
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'

Expand Down Expand Up @@ -68,17 +74,18 @@ jobs:
with:
name: BINARY.bin
path: ${{ github.workspace }}/build/*.bin
pr-check:
if: ${{ always() }}

Result:
runs-on: ubuntu-22.04
needs:
- github-build
- arch-build
- alpine-build
- ubuntu-build-upload
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
- name: All tests ok
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
15 changes: 0 additions & 15 deletions .github/workflows/pr-test.yml

This file was deleted.

0 comments on commit a3d0cd9

Please sign in to comment.