Skip to content

Merge branch 'main' into ROCKS-957/replace-ROCK-by-rock #308

Merge branch 'main' into ROCKS-957/replace-ROCK-by-rock

Merge branch 'main' into ROCKS-957/replace-ROCK-by-rock #308

name: _Test OCI Factory
on:
push:
paths:
- ".github/workflows/*"
- "!.github/workflows/CLA-Check.yaml"
- "!.github/workflows/PR-Validator.yaml"
- "oci/mock-*"
- "examples/**"
- "src/**"
jobs:
test-workflows:
name: Test OCI Factory workflows
runs-on: ubuntu-22.04
strategy:
matrix:
oci-image: [mock-rock]
steps:
- name: Trigger image workflows for ${{ matrix.oci-image }}
# Using this actions cause others can have this problem:
# https://github.com/convictional/trigger-workflow-and-wait/issues/61
uses: mathze/[email protected]
id: run-image
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.ref_name }}
fail-on-error: true
workflow-name: Image.yaml
payload: '{ "oci-image-name": "${{ matrix.oci-image }}", "upload": true }'
trigger-timeout: "5m"
wait-timeout: "30m"
use-marker-step: true
run-id: dummy
- name: Enforce conclusion
if: ${{ steps.run-image.outputs.run-conclusion != 'success' }}
# The previous step doesn't always raise an error
run: |
url='${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ steps.run-image.outputs.run-id }}'
echo "Image '${{ matrix.oci-image }}' workflow at [${url}](${url}) failed."
exit 1