name: "Workflow Dispatch"
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
call-lint:
name: "Lint"
uses: ./.github/workflows/lint.yml
secrets: inherit
call-build:
name: "Build"
uses: ./.github/workflows/build.yml
secrets: inherit
# call-test:
# name: "Test"
# needs: [ call-lint, call-build ]
# uses: ./.github/workflows/test.yml
# with:
# VERSION: ${{ needs.call-build.outputs.VERSION }}
call-release:
name: "Release"
# Ensures the release only runs after tests and build are complete
needs:
if: ${{ github.ref_protected == true }}
uses: ./.github/workflows/release.yml
secrets: inherit