Skip to content

Commit

Permalink
chore(ci): Enhance CI with workflow_dispatch for targeted debugging…
Browse files Browse the repository at this point in the history
… and testing (#8822) (#8826)

* chore(ci): Enhance CI with `workflow_dispatch` for targeted debugging and testing (#8822)

This patch introduces `workflow_dispatch` trigger into CI, to allow for more manual and targeted
control of running independent pipelines during CI debugging or test environments.

A solution to help developers run isolated workflows from their CLI, in case of failure.

At the moment, the implmentation respects strong defaults according to the events documentation:
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#providing-inputs

* chore(ci): update all workflows with `workflow_dispatch` event
  • Loading branch information
50-Course committed Jan 30, 2024
1 parent eff0b2f commit 1b01fe7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]

workflow_dispatch:



jobs:
analyze:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
- '**.toml'
- '/docker/**'
- '.github/workflows/docker.yml'
workflow_dispatch:


jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Linter

on: [pull_request]
on: [pull_request, workflow_dispatch]

jobs:
linter:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- '**.toml'
- '.github/workflows/python-package.yml'
- "tox.ini"
workflow_dispatch:


permissions:
contents: read # to fetch code (actions/checkout)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 44 6 * * *
workflow_dispatch:

name: Semgrep
jobs:
semgrep:
Expand Down

0 comments on commit 1b01fe7

Please sign in to comment.