[WIP] blog for extending meshery models #744
Workflow file for this run
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: Kanvas Screenshot Service | |
'on': | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
workflow_call: | |
inputs: | |
fileName: | |
description: Relative file path from the root directory | |
required: true | |
type: string | |
outputs: | |
resource_url: | |
description: The URL of the generated resource. | |
value: ${{ jobs.KanvasScreenshot.outputs.resource_url }} | |
permissions: | |
actions: read | |
contents: write | |
security-events: write | |
statuses: write | |
pull-requests: write | |
id-token: write | |
jobs: | |
KanvasScreenshot: | |
runs-on: ubuntu-latest | |
outputs: | |
resource_url: ${{ steps.test_result.outputs.resource_url }} | |
steps: | |
- name: Set PR number | |
run: | | |
export pull_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") | |
echo "PULL_NO=$pull_number" >> $GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
path: action | |
repository: layer5labs/kanvas-snapshot | |
- id: test_result | |
uses: layer5labs/[email protected] | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
mesheryToken: ${{ secrets.MESHERY_TOKEN }} | |
prNumber: ${{ env.PULL_NO }} | |
application_type: Kubernetes Manifest | |
filePath: ${{ inputs.fileName == '' && '.gitpod.yml' || inputs.fileName }} |