-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add "control-instance-from-workflow" to enable reuse
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Control Instance from Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
issue_number: | ||
description: "Issue number" | ||
required: true | ||
type: number | ||
command_name: | ||
description: | ||
"Name of the command to execute: create, delete, shelve, unshelve" | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
issue_number: | ||
description: "Issue number" | ||
required: true | ||
type: number | ||
command_name: | ||
description: | ||
"Name of the command to execute: create, delete, shelve, unshelve" | ||
required: true | ||
type: string | ||
permissions: | ||
issues: write | ||
checks: read | ||
|
||
jobs: | ||
control: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Control instance | ||
uses: ./.github/actions/control-instance | ||
with: | ||
issue_number: ${{ inputs.issue_number }} | ||
command_name: ${{ inputs.command_name }} |