Skip to content

Commit

Permalink
feat: Add "control-instance-from-workflow" to enable reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Aug 24, 2024
1 parent 93accbf commit 38dbd45
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/control-instance-from-workflow.yml
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 }}

0 comments on commit 38dbd45

Please sign in to comment.