Testing json-utils get action #2
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: List PRs
|
- name: List PRs
|
||||||
id: list-prs
|
id: listprs
|
||||||
uses: prasiman/gocurl@v1
|
uses: prasiman/gocurl@v1
|
||||||
with:
|
with:
|
||||||
url: ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls
|
url: ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls
|
||||||
@@ -25,10 +25,9 @@ jobs:
|
|||||||
headers: '{ "Authorization": "token ${{ secrets.GITEA_API_TOKEN }}" }'
|
headers: '{ "Authorization": "token ${{ secrets.GITEA_API_TOKEN }}" }'
|
||||||
log-response: true
|
log-response: true
|
||||||
- name: Parse Response
|
- name: Parse Response
|
||||||
id: parse-response
|
|
||||||
uses: yakubique/json-utils@v1.8
|
uses: yakubique/json-utils@v1.8
|
||||||
with:
|
with:
|
||||||
input: ${{ steps.list-prs.outputs.response }}
|
input: ${{ steps.listprs.outputs.response }}
|
||||||
action: "get"
|
action: "get"
|
||||||
key: "data"
|
key: "data"
|
||||||
# - name: Create Pull Request
|
# - name: Create Pull Request
|
||||||
|
|||||||
Reference in New Issue
Block a user