mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 08:57:31 +08:00
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:
committed by
GitHub
parent
950aac1cce
commit
459a80c983
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 }}
|
||||
|
||||
Reference in New Issue
Block a user