File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Kanvas Screenshot Service
2+ ' on ' :
3+ pull_request :
4+ types :
5+ - opened
6+ - synchronize
7+ - reopened
8+ workflow_call :
9+ inputs :
10+ fileName :
11+ description : Relative file path from the root directory
12+ required : true
13+ type : string
14+ outputs :
15+ resource_url :
16+ description : The URL of the generated resource.
17+ value : ${{ jobs.KanvasScreenshot.outputs.resource_url }}
18+ permissions :
19+ actions : read
20+ contents : write
21+ security-events : write
22+ statuses : write
23+ pull-requests : write
24+ id-token : write
25+ jobs :
26+ KanvasScreenshot :
27+ runs-on : ubuntu-latest
28+ outputs :
29+ resource_url : ${{ steps.test_result.outputs.resource_url }}
30+ steps :
31+ - name : Set PR number
32+ run : |
33+ export pull_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
34+ echo "PULL_NO=$pull_number" >> $GITHUB_ENV
35+ - uses : actions/checkout@v4
36+ - uses : actions/checkout@v4
37+ with :
38+ path : action
39+ repository : layer5labs/kanvas-snapshot
40+ - id : test_result
41+ uses : layer5labs/kanvas-snapshot@v0.2.34
42+ with :
43+ githubToken : ${{ secrets.GITHUB_TOKEN }}
44+ mesheryToken : ${{ secrets.MESHERY_TOKEN }}
45+ prNumber : ${{ env.PULL_NO }}
46+ application_type : Kubernetes Manifest
47+ filePath : ${{ inputs.fileName == '' && 'install/deployment_yamls/k8s/meshery-deployment.yaml' || inputs.fileName }}
You can’t perform that action at this time.
0 commit comments