From dee4a5a21b6e2b51737119b0e446a6d37e5a3417 Mon Sep 17 00:00:00 2001 From: Tom Koscielniak Date: Tue, 27 May 2025 13:34:28 +0200 Subject: [PATCH] CI: Run RHEL 10 nightly pipeline on PRs Add RHEL 10 nightly pipeline to PRs as well to avoid test breaking changes being introduced into main. --- .github/workflows/trigger-gitlab.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger-gitlab.yml b/.github/workflows/trigger-gitlab.yml index 7ca0ad53d..93a4adb5c 100644 --- a/.github/workflows/trigger-gitlab.yml +++ b/.github/workflows/trigger-gitlab.yml @@ -94,7 +94,7 @@ jobs: git push -f ci fi - - name: Trigger GitLab nightly pipeline against this PR + - name: Trigger GitLab RHEL 9 nightly pipeline against this PR if: env.GITLAB_TOKEN && steps.pr_data.outputs.pr_branch run: | # osbuild-composer @@ -107,3 +107,16 @@ jobs: --form "variables[NIGHTLY]=true" \ --form "variables[RHEL_MAJOR]=9" \ "https://gitlab.com/api/v4/projects/$PROJECT_ID/trigger/pipeline" + + - name: Trigger GitLab RHEL 10 nightly pipeline against this PR + if: env.GITLAB_TOKEN && steps.pr_data.outputs.pr_branch + run: | + # osbuild-composer + PROJECT_ID=34771166 + # Simulate a nightly CI pipeline against this PR + curl --request POST --fail --form "token=$GITLAB_TOKEN" \ + --form ref=${{ steps.pr_data.outputs.pr_branch }} \ + --form "variables[CI_PIPELINE_SOURCE]=schedule" \ + --form "variables[NIGHTLY]=true" \ + --form "variables[RHEL_MAJOR]=10" \ + "https://gitlab.com/api/v4/projects/$PROJECT_ID/trigger/pipeline"