ci: fix set-ci-condition job (#2934)
* chore(ci.yml): refactor CI workflow to include a new job 'set-ci-condition' to determine if CI should run based on conditions such as pull request labels and event type * refactor: include new job 'set-ci-condition' in CI workflow to determine if CI should run based on conditions
This commit is contained in:
parent
950aac1cce
commit
459a80c983
1 changed files with 3 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -32,6 +32,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
should-run-ci: ${{ (contains( github.event.pull_request.labels.*.name, 'lgtm') && github.event.pull_request.draft == false) || (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') }}
|
||||
steps:
|
||||
# Do anything just to make the job run
|
||||
- run: echo "Set CI Condition"
|
||||
path-filter:
|
||||
needs: set-ci-condition
|
||||
if: ${{ needs.set-ci-condition.outputs.should-run-ci }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue