Skip to content

Commit

Permalink
Adjust workflow
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pedro-psb committed Jul 26, 2024
1 parent 74ae6a8 commit 4eb441c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
uses: "./.github/workflows/lint.yml"

build:
needs: "lint"
uses: "./.github/workflows/build.yml"
if: "${{ false }}"
uses: "./.github/workflows/test.yml"

test:
needs: "build"
if: "${{ false }}"
uses: "./.github/workflows/test.yml"

deprecations:
Expand Down Expand Up @@ -89,11 +89,16 @@ jobs:
- "lint"
- "test"
- "docs"
if: "always()"
if: "${{ always() && !failure() && !cancelled() }}"
steps:
- name: "Collect needed jobs results"
working-directory: "."
run: |
echo '${{toJson(needs)}}' | jq -r 'to_entries[]|select(.value.result!="success")|.key + ": " + .value.result'
echo '${{toJson(needs)}}' | jq -e 'to_entries|map(select(.value.result!="success"))|length == 0'
echo "CI says: Looks good!"
- name: "Skip docs message"
- name: "Skipped docs"
if: "!endsWith(github.base_ref, 'main')"
run: |
echo "CI says: Skipped docs because we only test docs on main."

0 comments on commit 4eb441c

Please sign in to comment.