osbuild-composer-ci #1282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RHEL for Edge test on CS8 | |
on: | |
# Triggered by osbuild-composer CI from gitlab | |
repository_dispatch: | |
types: [osbuild-composer-ci] | |
jobs: | |
pr-info: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get PR number from string PR-xxxx | |
id: pr-num | |
run: | | |
PR_NUM=$(echo "${{ github.event.client_payload.pr_number }}" | cut -d'-' -f 2) | |
echo "pr_number=$PR_NUM" >> $GITHUB_OUTPUT | |
- name: Get information for osbuild-composer pull request | |
uses: octokit/[email protected] | |
id: pr-api | |
with: | |
route: GET /repos/osbuild/osbuild-composer/pulls/${{ steps.pr-num.outputs.pr_number }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
outputs: | |
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }} | |
sender_repo: ${{ fromJson(steps.pr-api.outputs.data).head.repo.full_name }} | |
sender_branch: ${{ fromJson(steps.pr-api.outputs.data).head.ref }} | |
pre-edge-commit-cs8: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-commit-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-commit-cs8" '.jobs | map(select(.name == "pre-edge-commit-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-commit-cs8: | |
needs: [pr-info, pre-edge-commit-cs8] | |
runs-on: [kite, x86_64, gcp, centos-stream-8, medium] | |
timeout-minutes: 90 | |
env: | |
STATUS_NAME: Tests / edge-commit-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-commit-cs8" '.jobs | map(select(.name == "edge-commit-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ needs.pr-info.outputs.sender_repo }} | |
ref: ${{ needs.pr-info.outputs.sender_branch }} | |
fetch-depth: 0 | |
- name: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree.sh | |
timeout-minutes: 40 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'CentOS Stream 8 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'CentOS Stream 8 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-commit-cs8 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-installer-cs8: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-installer-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-installer-cs8" '.jobs | map(select(.name == "pre-edge-installer-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-installer-cs8: | |
needs: [pr-info, pre-edge-installer-cs8] | |
runs-on: [kite, x86_64, rhos-0x, centos-stream-8, large] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-installer-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-installer-cs8" '.jobs | map(select(.name == "edge-installer-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ needs.pr-info.outputs.sender_repo }} | |
ref: ${{ needs.pr-info.outputs.sender_branch }} | |
fetch-depth: 0 | |
- name: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-ng.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-ng.sh | |
env: | |
V2_QUAY_USERNAME: ${{ secrets.V2_QUAY_USERNAME }} | |
V2_QUAY_PASSWORD: ${{ secrets.V2_QUAY_PASSWORD }} | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'CentOS Stream 8 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'CentOS Stream 8 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-installer-cs8 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-raw-cs8: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-raw-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-raw-cs8" '.jobs | map(select(.name == "pre-edge-raw-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-raw-cs8: | |
needs: [pr-info, pre-edge-raw-cs8] | |
runs-on: [kite, x86_64, gcp, centos-stream-8, medium] | |
timeout-minutes: 130 | |
env: | |
STATUS_NAME: Tests / edge-raw-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-raw-cs8" '.jobs | map(select(.name == "edge-raw-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ needs.pr-info.outputs.sender_repo }} | |
ref: ${{ needs.pr-info.outputs.sender_branch }} | |
fetch-depth: 0 | |
- name: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-raw-image.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-raw-image.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'CentOS Stream 8 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'CentOS Stream 8 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-raw-cs8 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-simplified-cs8: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-simplified-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-simplified-cs8" '.jobs | map(select(.name == "pre-edge-simplified-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-simplified-cs8: | |
needs: [pr-info, pre-edge-simplified-cs8] | |
runs-on: [kite, x86_64, rhos-0x, centos-stream-8, large] | |
timeout-minutes: 160 | |
env: | |
STATUS_NAME: Tests / edge-simplified-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-simplified-cs8" '.jobs | map(select(.name == "edge-simplified-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ needs.pr-info.outputs.sender_repo }} | |
ref: ${{ needs.pr-info.outputs.sender_branch }} | |
fetch-depth: 0 | |
- name: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run ostree-simplified-installer.sh | |
run: /usr/libexec/tests/osbuild-composer/ostree-simplified-installer.sh | |
env: | |
EDGE_USER_PASSWORD: foobar | |
timeout-minutes: 150 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'CentOS Stream 8 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'CentOS Stream 8 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-simplified-cs8 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log | |
pre-edge-minimal-raw-cs8: | |
needs: pr-info | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: Tests / edge-minimal-raw-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "pre-edge-minimal-raw-cs8" '.jobs | map(select(.name == "pre-edge-minimal-raw-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Runner has been deploying...' | |
target_url: '${{ steps.job-log-url.outputs.html_url }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
edge-minimal-raw-cs8: | |
needs: [pr-info, pre-edge-minimal-raw-cs8] | |
runs-on: [kite, x86_64, gcp, centos-stream-8, medium] | |
timeout-minutes: 100 | |
env: | |
STATUS_NAME: Tests / edge-minimal-raw-cs8 | |
steps: | |
- name: Get Current Job Log URL | |
id: job-log-url | |
run: | | |
sudo dnf install -y jq | |
JOB_HTML_URL=$(curl --get -Ss -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/osbuild/rhel-edge-ci/actions/runs/${GITHUB_RUN_ID}/jobs?per_page=30" | jq -r --arg job_name "edge-minimal-raw-cs8" '.jobs | map(select(.name == "edge-minimal-raw-cs8")) | .[0].html_url') | |
echo "html_url=$JOB_HTML_URL" >> $GITHUB_OUTPUT | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'CentOS Stream 8 - Test has been running...' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ needs.pr-info.outputs.sender_repo }} | |
ref: ${{ needs.pr-info.outputs.sender_branch }} | |
fetch-depth: 0 | |
- name: Make a deployment | |
run: schutzbot/deploy.sh | |
env: | |
GIT_COMMIT: ${{ needs.pr-info.outputs.sha }} | |
timeout-minutes: 20 | |
- name: run minimal-raw.sh | |
run: /usr/libexec/tests/osbuild-composer/minimal-raw.sh | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 60 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
description: 'CentOS Stream 8 - Test got ${{ job.status }}' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/osbuild/osbuild-composer/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
description: 'CentOS Stream 8 - Test got error' | |
target_url: ${{ steps.job-log-url.outputs.html_url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: edge-minimal-raw-cs8 | |
path: | | |
/tmp/artifacts/*.json | |
/tmp/artifacts/*.log |