Skip to content

Commit

Permalink
.github: fix worfklows used by renovate
Browse files Browse the repository at this point in the history
With the introduction of 6f461ea, some of the workflows were not
prepared to handle concurrency for "push" events so we had to add the
group for these type of events.

Also, some of the workflows were not running the "commit-status-final"
as this step was only running for events that were not type "push". As
the list of required workflows are based on the name created by this
step, we also need to run this step for the "push" events. Some existing
workflows already push "commit-status-final" for pushes as well so the
introduction for these workflows will be consistent with existing ones.

Finally, the push events should only be triggered for pushes done
respective to the "main" branch, thus we will be using the prefix
"renovate/main-**" instead of "renovate/**" to avoid triggering the GH
main workflows from stable branches and vice-versa.

Fixes: 6f461ea ("run CI automatically for renovate")
Signed-off-by: André Martins <[email protected]>
  • Loading branch information
aanm committed Jun 21, 2024
1 parent 0364b25 commit 0e13665
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/conformance-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-aws-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-externalworkloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/conformance-ipsec-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests-ipsec-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ concurrency:
${{ github.workflow }}
${{ github.event_name }}
${{
(github.event_name == 'push' && github.sha) ||
(github.event_name == 'schedule' && github.sha) ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.PR-number)
}}
Expand Down

0 comments on commit 0e13665

Please sign in to comment.