Catalog #24
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
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 }}" }' |