Skip to content

Commit

Permalink
[apache#768] improvement(CI): Setting the workflow depends (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
xunliu authored Dec 21, 2023
1 parent 9dddd0c commit 17ba646
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Integration Test

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "branch-*" ]
pull_request:
branches: [ "main", "branch-*" ]
workflow_run:
workflows:
- build
types:
- completed

concurrency:
group: ${{ github.worklfow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -15,6 +19,7 @@ concurrency:
jobs:
changes:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
Expand Down

0 comments on commit 17ba646

Please sign in to comment.