-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.32 KB
/
dump-github-context-data-in-pr-comment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Add PR Comment
on:
# Trigger the workflow on 'push' event only on the 'master' branch
pull_request:
branches:
- master
paths-ignore:
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Add PR Comment with all ENV variables
uses: mshick/add-pr-comment@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false
message: |
This is a multi-line test comment added in PR
- **GITHUB_WORKFLOW** (The name of the workflow.) : ${{ github.workflow }}
- **GITHUB_ACTION** (The unique identifier of the action) : ${{ github.action }}
- **GITHUB_ACTOR** : ${{ github.actor }}
- **GITHUB_REPOSITORY** : ${{ github.repository }}
- **GITHUB_EVENT_NAME** (The name of the webhook event that triggered the workflow.) : ${{ github.event_name }}
- **GITHUB_WORKSPACE** (The GitHub workspace directory path. ) : ${{ github.workspace }}
- **GITHUB_SHA** (The commit SHA that triggered the workflow) : ${{ github.sha }}
- **GITHUB_REF** (The branch or tag ref that triggered the workflow) : ${{ github.ref }}