-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (45 loc) · 1.66 KB
/
catalog.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
name: Catalog
on:
workflow_dispatch:
inputs:
appName:
description: "NR1 Nerdpack Name"
required: true
version:
description: "Version to update"
required: true
ref:
description: "Commit SHA to update the submodule to"
required: true
user:
description: "User who initiated the deployment"
required: true
action:
description: "Action to take with submodule. Possible values: add, update"
required: true
default: "update"
url:
description: "If action == `add`, must supply URL of repo"
required: false
jobs:
job-check-workflow-dispatch-inputs:
runs-on: ubuntu-latest
steps:
- run: |
echo "appName: ${{ github.event.inputs.appName }}"
echo "version: ${{ github.event.inputs.version }}"
echo "ref: ${{ github.event.inputs.ref }}"
echo "user: ${{ github.event.inputs.user }}"
echo "action: ${{ github.event.inputs.action }}"
echo "url: ${{ github.event.inputs.url }}"
job-trigger-catalog-workflow:
runs-on: ubuntu-latest
steps:
- name: Invoke nr1-catalog PR workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Generate Catalog PR
repo: newrelic/nr1-catalog
token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
ref: master
inputs: '{ "appName": "${{ github.event.inputs.appName }}", "version": "${{ github.event.inputs.version }}", "ref": "${{ github.event.inputs.ref }}", "user": "${{ github.event.inputs.user }}", "action": "${{ github.event.inputs.action }}", "url": "${{ github.event.inputs.url }}" }'