mirror of
https://github.com/bitnami/containers.git
synced 2026-03-06 06:58:01 +08:00
31 lines
903 B
YAML
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"
|