Add support for workflow_dispatch trigger

Closes #112
This commit is contained in:
alstr
2022-10-27 09:52:02 +01:00
parent 4fcac8cc35
commit 223e23516d
2 changed files with 24 additions and 2 deletions

View File

@@ -1,5 +1,14 @@
name: "Workflow"
on: ["push"]
on:
push:
workflow_dispatch:
inputs:
BASE_MANUAL:
description: "The base SHA"
required: true
HEAD_MANUAL:
description: "The head SHA"
required: false
jobs:
build:
runs-on: "ubuntu-latest"
@@ -8,5 +17,10 @@ jobs:
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@master"
id: "todo"
env:
BASE_MANUAL:
${{ inputs.BASE_MANUAL }}
HEAD_MANUAL:
${{ inputs.HEAD_MANUAL }}
with:
PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }}