File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : MeshMap Screenshot Service
2
+ ' on ' :
3
+ pull_request_target :
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.MeshMapScreenshot.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
+ MeshMapScreenshot :
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@v3
36
+ - uses : actions/checkout@v3
37
+ with :
38
+ path : action
39
+ repository : layer5labs/meshmap-snapshot
40
+ - id : test_result
41
+ uses : ${GITHUB_REF/refs/tags//}
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 == '' && 'src' || inputs.fileName }}
You can’t perform that action at this time.
0 commit comments