Files
containers/.github/workflows/fmulero-test.yml
Fran Mulero 3dd665354a Fix path to content_url
Signed-off-by: Fran Mulero <fmulero@vmware.com>
2022-09-14 13:12:23 +02:00

31 lines
903 B
YAML

name: '[Support] Debug events'
on:
project_card:
types:
- moved
permissions:
issues: read
jobs:
debugJob:
name: Print event
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
- name: Get issue info
id: get-issue
run: |
issue_info=$(curl -s --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -X GET -G ${{ github.event.project_card.content_url }})
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
env:
ISSUE_OUTPUTS: ${{ toJson(steps.get-issue.outputs) }}
run: |
echo "$ISSUE_OUTPUTS"