mirror of
https://github.com/bitnami/containers.git
synced 2026-10-19 19:42:24 +02:00
Debug issue info in move cards events
Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
@@ -3,7 +3,8 @@ on:
|
|||||||
project_card:
|
project_card:
|
||||||
types:
|
types:
|
||||||
- moved
|
- moved
|
||||||
|
permissions:
|
||||||
|
issues: read
|
||||||
jobs:
|
jobs:
|
||||||
debugJob:
|
debugJob:
|
||||||
name: Print event
|
name: Print event
|
||||||
@@ -14,13 +15,16 @@ jobs:
|
|||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
run: |
|
run: |
|
||||||
echo "$GITHUB_CONTEXT"
|
echo "$GITHUB_CONTEXT"
|
||||||
- name: Get Issue
|
- name: Get issue info
|
||||||
id: getissue
|
id: get-issue
|
||||||
uses: actions-cool/issues-helper@v3
|
run: |
|
||||||
with:
|
issue_info=$(curl -s --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -X GET -G ${{ github.project_card.content_url }})
|
||||||
actions: get-issue
|
assignees=$(echo $issue_info | jq -r '.assignees')
|
||||||
|
creator=$(echo $issue_info | jq -r '.user.login')
|
||||||
|
echo "::set-output name=assignees::${assignees}"
|
||||||
|
echo "::set-output name=creator::${creator}"
|
||||||
- name: Dump getissue outputs
|
- name: Dump getissue outputs
|
||||||
env:
|
env:
|
||||||
ISSUE_OUTPUTS: ${{ toJson(steps.getissue.outputs) }}
|
ISSUE_OUTPUTS: ${{ toJson(steps.get-issue.outputs) }}
|
||||||
run: |
|
run: |
|
||||||
echo "$ISSUE_OUTPUTS"
|
echo "$ISSUE_OUTPUTS"
|
||||||
|
|||||||
Reference in New Issue
Block a user