fix branch #320
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: _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: Trigger image workflows for ${{ matrix.oci-image }} | ||
strategy: | ||
matrix: | ||
oci-image: [mock-rock] | ||
uses: linostar/oci-factory/.github/workflows/Image.yaml@ROCKS-951/make-gh-workflows-callable | ||
Check failure on line 18 in .github/workflows/_Test-OCI-Factory.yaml GitHub Actions / .github/workflows/_Test-OCI-Factory.yamlInvalid workflow file
|
||
with: | ||
oci-image-name: "${{ matrix.oci-image }}" | ||
upload: true | ||
secrets: inherit | ||
enforce-conclusion: | ||
name: Test OCI Factory workflows | ||
needs: [test-workflows] | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
oci-image: [mock-rock] | ||
steps: | ||
- 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 |