Skip to content

Project Build Workflow #6

Project Build Workflow

Project Build Workflow #6

Workflow file for this run

name: Project Build Workflow
# TeqBench - CI Workflow - Manually initiate a CI workflow.
on:
workflow_dispatch:
jobs:
# This not the most optimal solution, however, as of 1/4/24, cannot limit the workflow_dispatch to a specific branch via the UI.
# Also, this is extra code to copy/paste into other repo workflow files. Revisit at a later time to improve.
validate-dispatch-inputs:
name: Validate Dispatch Inputs Job
runs-on: ubuntu-latest
steps:
- name: Validate Main Branch Selection
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main'
run: |
echo "This workflow can only be initiated using the 'main' branch."
exit 1
build:
name: Build Job
needs: validate-dispatch-inputs
uses: teqbench/teqbench.devops.githhub.workflows/.github/workflows/build-with-concurrency.yml@main

Check failure on line 23 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build.yml" -> "teqbench/teqbench.devops.githhub.workflows/.github/workflows/build-with-concurrency.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
secrets: inherit
with:
ci_type: 'build-manual'