Skip to content

Commit

Permalink
Update add-comment.yml
Browse files Browse the repository at this point in the history
added debugging
  • Loading branch information
MarvinKern authored Apr 10, 2024
1 parent 0449b06 commit 80bf7a5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/add-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: create a comment with git cli
run: |
gh issue comment ${{ github.event.issue.number }} --body "This is my test comment created with a workflow using github cli"
- name: logging debugging informations
run: |
echo "${{ github.event.issue.number }}"
- name: create a comment with github action
uses: actions/github-script@v6
with:
Expand All @@ -28,3 +31,34 @@ jobs:
repo: context.repo.repo,
body: 'created a comment using github action!'
})
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- name: Show default environment variables
run: |
echo "The job_id is: $GITHUB_JOB" # reference the default environment variables
echo "The id of this action is: $GITHUB_ACTION" # reference the default environment variables
echo "The run id is: $GITHUB_RUN_ID"
echo "The GitHub Actor's username is: $GITHUB_ACTOR"
echo "GitHub SHA: $GITHUB_SHA"

0 comments on commit 80bf7a5

Please sign in to comment.