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:
Gabriel Luiz Freitas Almeida 2024-07-24 18:40:33 -03:00 committed by GitHub
commit 459a80c983
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}