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.
This commit is contained in:
Tom Koscielniak 2025-05-27 13:34:28 +02:00 committed by Achilleas Koutsou
parent b825fd8f77
commit dee4a5a21b

View file

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