Skip to content

Make main workflow reusable #1

Make main workflow reusable

Make main workflow reusable #1

Workflow file for this run

name: Pushed Commit
on:
push:
jobs:
get-base-image:
runs-on: ubuntu-latest
outputs:
base_image: ${{ steps.vars.outputs.base_image }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Output the base-image
id: vars
run: |
source ./bin/lib.sh
echo "base_image=$(echo_base_image)" >> ${GITHUB_OUTPUT}
trigger:
needs: [get-base-image]
uses: ./.github/workflows/main.yml

Check failure on line 26 in .github/workflows/commit_trigger.yml

View workflow run for this annotation

GitHub Actions / Pushed Commit

Invalid workflow file

The workflow is not valid. In .github/workflows/commit_trigger.yml (Line: 26, Col: 11): Error from called workflow cyber-dojo/saver/.github/workflows/main.yml@8820c471cf26352f52cb46e72cb52ae561cfd5f8 (Line: 7, Col: 9): Required property is missing: type In .github/workflows/commit_trigger.yml (Line: 26, Col: 11): Error from called workflow cyber-dojo/saver/.github/workflows/main.yml@8820c471cf26352f52cb46e72cb52ae561cfd5f8 (Line: 9, Col: 9): Required property is missing: type
with:
BASE_IMAGE: ${{ needs.get-base-image.outputs.base_image }}
KOSLI_TRAIL: ${{ github.sha }}
secrets:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}