Skip to content

Commit

Permalink
ci: Update condition for action-timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
yorifuji committed Apr 7, 2024
1 parent c345b1f commit e2e5495
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:

action-timeline:
needs: [format, analyze, test]
if: ${{ !cancelled() }}
if: ${{ !cancelled() && github.event.workflow == '.github/workflows/check.yml' }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2
7 changes: 7 additions & 0 deletions .github/workflows/deliver-on-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ jobs:
contents: read
pages: write
id-token: write

action-timeline:
needs: [prod, stg, pages]
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2
7 changes: 7 additions & 0 deletions .github/workflows/deliver-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@ jobs:
if: ${{ inputs.upload }}
id: deployment
uses: actions/deploy-pages@v4

action-timeline:
needs: [deploy-pages]
if: ${{ !cancelled() && github.event.workflow == '.github/workflows/deliver-pages.yml' }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2
1 change: 1 addition & 0 deletions .github/workflows/deliver-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ jobs:
action-timeline:
needs: [android, ios]
if: ${{ !cancelled() && github.event.workflow == '.github/workflows/deliver-prod.yml' }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2
1 change: 1 addition & 0 deletions .github/workflows/deliver-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ jobs:
action-timeline:
needs: [android, ios]
if: ${{ !cancelled() && github.event.workflow == '.github/workflows/deliver-stg.yml' }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2
7 changes: 7 additions & 0 deletions .github/workflows/scheduled-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ jobs:
id-token: write
with:
upload: false

action-timeline:
needs: [check, build-prod, build-stg, build-pages]
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ jobs:
review-comment: true

action-timeline:
if: ${{ !cancelled() }}
needs: [lookup, actual, expected, compare]
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- uses: Kesin11/actions-timeline@v2

0 comments on commit e2e5495

Please sign in to comment.