generated from forest-extension/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.11 KB
/
dispatch_plugin_template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "[Dispatch] Create Plugin Template"
on:
workflow_dispatch:
inputs:
resource_type:
description: 'plugin type ex) (inventory.Collector, cost-analysis.DataSource, monitoring.Webhook, notification.Notification ...)'
required: true
default: 'inventory.Collector'
core-version:
description: 'core version'
required: true
default: '2.0'
env:
REPO: forest-extension/actions
WORKFLOW_NAME: dispatch_apply_plugin_template.yaml
jobs:
owner_check:
if: github.repository_owner == 'forest-extension'
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.repository_owner }}
pull_plugin_template:
runs-on: ubuntu-latest
needs: owner_check
steps:
- name: request workflows
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: ${{ env.REPO }}
workflow: ${{ env.WORKFLOW_NAME }}
inputs: '{"dest" : "${{ github.event.repository.name }}", "resource_type" : "${{ github.event.inputs.resource_type }}", "core-version" : "${{ github.event.inputs.core-version }}"}'