diff --git a/.github/workflows/dispatch_lint.yml b/.github/workflows/dispatch_lint.yml deleted file mode 100644 index e5d51d97a6bd..000000000000 --- a/.github/workflows/dispatch_lint.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Manually dispatch linting - -on: - workflow_dispatch: - -jobs: - lint_all: - uses: ./.github/workflows/reusable_lint.yml - with: - SAVE_CACHE: false - secrets: - CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/manual_dispatch.yml b/.github/workflows/manual_dispatch.yml new file mode 100644 index 000000000000..20cc8e5f7dbc --- /dev/null +++ b/.github/workflows/manual_dispatch.yml @@ -0,0 +1,45 @@ +name: Manually Dispatch Workflows + +on: + workflow_dispatch: + inputs: + lints: + description: 'Run Lints' + type: boolean + required: true + default: true + build_linux: + description: 'Build/Test Linux' + type: boolean + required: true + default: true + build_macos: + description: 'Build/Test Mac' + type: boolean + required: true + default: false + build_windows: + description: 'Build/Test Win' + type: boolean + required: true + default: false + +jobs: + lint_all: + name: Lint All + if: ${{ github.event.inputs.lints }} + uses: ./.github/workflows/reusable_lint.yml + with: + SAVE_CACHE: false + secrets: + CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build_linux: + name: Build/Test Linux + if: ${{ github.event.inputs.build_linux }} + needs: [lint_all] + uses: ./.github/workflows/reusable_build_and_test.yml + with: + SAVE_CACHE: false + PLATFORM: linux + secrets: + CALLER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}