Skip to content

fix branch

fix branch #320

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

View workflow run for this annotation

GitHub Actions / .github/workflows/_Test-OCI-Factory.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/_Test-OCI-Factory.yaml" -> "linostar/oci-factory/.github/workflows/Image.yaml@ROCKS-951/make-gh-workflows-callable" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
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