Skip to content

Commit

Permalink
ci/fix(pr-build): skip check-run related actions based on condition (#…
Browse files Browse the repository at this point in the history
…167)

* ci/fix(pr-build): skip check-run related actions based on condition

* fix: fix syntax

* fix: fix syntax

* fix: refine condition statement

* test: add dummy step to output github context objects

* fix: fix syntax

* fix: fix syntax

* test changes

* test changes

* fix: fix  broken syntax

* fix: fix syntax

* patch: test with proposed fix
  • Loading branch information
piyoki authored Jul 15, 2023
1 parent 603783b commit 20cbb49
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
echo "$GITHUB_CONTEXT"
instantiate-check-runs:
if: startsWith(github.event.pull_request.head.repo.full_name, github.repository_owner)
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -66,8 +67,8 @@ jobs:
path: daed-full-src.zip

- name: Report result
if: always() && startsWith(github.event.pull_request.head.repo.full_name, github.repository_owner)
uses: daeuniverse/ci-seed-jobs/core/daed/report-check-run@master
if: always()
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -99,8 +100,8 @@ jobs:
path: dist

- name: Report result
if: always() && startsWith(github.event.pull_request.head.repo.full_name, github.repository_owner)
uses: daeuniverse/ci-seed-jobs/core/daed/report-check-run@master
if: always()
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -247,15 +248,15 @@ jobs:
path: bundled/*

- name: Report result
if: always() && startsWith(github.event.pull_request.head.repo.full_name, github.repository_owner)
uses: daeuniverse/ci-seed-jobs/core/daed/report-check-run@master
if: always()
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
id: "dae-bot[bot]/build-bundle"

conclusion:
if: always()
if: always() && startsWith(github.event.pull_request.head.repo.full_name, github.repository_owner)
needs: [build-bundle]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 20cbb49

Please sign in to comment.