From cc093cdfdbc573643527533371b439f71da82354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 23 Oct 2024 13:14:50 +0200 Subject: [PATCH] workflows: Add a manually trigger "devel" workflow for the CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This workflow is intended to replace the `workflow_dispatch` trigger currently present as part of the `ci-nightly.yaml`. The reasoning behind having this done in this way is because of our good and old GHA behaviour for `pull_request_target`, which requires a PR to be merged in order to check the changes in the workflow itself, which leads to: * when a change in a workflow is done, developers (should) do: * push their branch to the kata-containers repo * manually trigger the "nightly" CI in order to ensure the changes don't break anything * this can result in the "nightly" CI weather being polluted * we don't have the guarantee / assurance about the last n nightly runs anymore Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/ci-devel.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/ci-devel.yaml diff --git a/.github/workflows/ci-devel.yaml b/.github/workflows/ci-devel.yaml new file mode 100644 index 0000000000..79de9e052f --- /dev/null +++ b/.github/workflows/ci-devel.yaml @@ -0,0 +1,17 @@ +name: Kata Containers CI (manually triggered) +on: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + kata-containers-ci-on-push: + uses: ./.github/workflows/ci.yaml + with: + commit-hash: ${{ github.sha }} + pr-number: "manually-triggered" + tag: ${{ github.sha }}-manually-triggered + target-branch: ${{ github.ref_name }} + secrets: inherit