-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.33 KB
/
test.yaml
File metadata and controls
44 lines (43 loc) · 1.33 KB
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
name: test
on:
workflow_dispatch:
inputs:
port_payload:
required: true
description: "Port's payload, including details for who triggered the action and general context (blueprint, run id, etc...)"
type: string
jobs:
search-entity:
runs-on: ubuntu-latest
outputs:
entities: ${{ steps.test-action.outputs.entities }}
steps:
- id: test-action
uses: port-labs/port-github-action@v1
with:
clientId: ${{ secrets.PORT_CLIENT_ID }}
clientSecret: ${{ secrets.PORT_CLIENT_SECRET }}
operation: SEARCH
query: |-
{
"combinator": "and",
"rules": [
{
"property": "$blueprint",
"operator": "=",
"value": "service"
},
{
"property": "$identifier",
"operator": "=",
"value": "test12345"
}
]}
print-output:
needs: search-entity
runs-on: ubuntu-latest
env:
test: ${{ needs.search-entity.outputs.entities }}
steps:
- name: print output
run: echo ${{ fromJson(needs.search-entity.outputs.entities)[0].title }}