|
1 | 1 | # Available GitHub Variables |
2 | 2 |
|
3 | | -All `GitHub` variables availables in your workflow in addition of ones exposed by this Action |
4 | | - |
5 | | -## Table of Contents |
6 | | - |
7 | | -- [Available GitHub Variables](#available-github-variables) |
8 | | - - [Table of Contents](#table-of-contents) |
9 | | - - [Default environment variables](#default-environment-variables) |
10 | | - - [Action-managed Environment Variables](#action-managed-environment-variables) |
11 | | - - [Variables from events](#variables-from-events) |
12 | | - - [Action-managed Event Variables](#action-managed-event-variables) |
13 | | - - [create](#create) |
14 | | - - [delete](#delete) |
15 | | - - [pull\_request](#pull_request) |
16 | | - - [pull\_request\_review](#pull_request_review) |
17 | | - - [pull\_request\_review\_comment](#pull_request_review_comment) |
18 | | - - [pull\_request\_target](#pull_request_target) |
19 | | - |
20 | | -## Default environment variables |
21 | | - |
22 | | -Read the official documentation about [Default environment variables][1]. |
23 | | - |
24 | | -### Action-managed Environment Variables |
25 | | - |
26 | | -| Action-managed Variables | Can be suffix by | |
27 | | -| ------------------------ | --------------- | |
28 | | -| GITHUB_REPOSITORY | `_SLUG`, `_SLUG_URL` | |
29 | | -| GITHUB_REF | `_SLUG`, `_SLUG_URL` | |
30 | | -| GITHUB_REF_NAME | `_SLUG`, `_SLUG_URL` | |
31 | | -| GITHUB_HEAD_REF | `_SLUG`, `_SLUG_URL` | |
32 | | -| GITHUB_BASE_REF | `_SLUG`, `_SLUG_URL` | |
33 | | -| GITHUB_SHA | `_SHORT` | |
34 | | - |
35 | | -## Variables from events |
36 | | - |
37 | | -Read the official documentation about [Events that trigger workflows][2]. |
38 | | - |
39 | | -### Action-managed Event Variables |
40 | | - |
41 | | -#### create |
42 | | - |
43 | | -Checkout [create][3] webhook payload content |
44 | | - |
45 | | -| Action-managed Variables | Available as | |
46 | | -| ------------------------ | ------------ | |
47 | | -| github.event.ref | GITHUB_EVENT_REF_SLUG | |
48 | | -| github.event.ref | GITHUB_EVENT_REF_SLUG_URL | |
49 | | - |
50 | | -#### delete |
51 | | - |
52 | | -Checkout [delete][4] webhook payload content |
53 | | - |
54 | | -| Action-managed Variables | Available as | |
55 | | -| ------------------------ | ------------ | |
56 | | -| github.event.ref | GITHUB_EVENT_REF_SLUG | |
57 | | -| github.event.ref | GITHUB_EVENT_REF_SLUG_URL | |
58 | | - |
59 | | -#### pull_request |
60 | | - |
61 | | -Checkout [pull_request][5] webhook payload content |
62 | | - |
63 | | -| Action-managed Variables | Available as | |
64 | | -| ------------------------ | ------------ | |
65 | | -| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT | |
66 | | - |
67 | | -#### pull_request_review |
68 | | - |
69 | | -Checkout [pull_request_review][6] webhook payload content |
70 | | - |
71 | | -| Action-managed Variables | Available as | |
72 | | -| ------------------------ | ------------ | |
73 | | -| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT | |
74 | | - |
75 | | -#### pull_request_review_comment |
76 | | - |
77 | | -Checkout [pull_request_review_comment][7] webhook payload content |
78 | | - |
79 | | -| Action-managed Variables | Available as | |
80 | | -| ------------------------ | ------------ | |
81 | | -| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT | |
82 | | - |
83 | | -#### pull_request_target |
84 | | - |
85 | | -Checkout [pull_request][5] webhook payload content |
86 | | - |
87 | | -| Action-managed Variables | Available as | |
88 | | -| ------------------------ | ------------ | |
89 | | -| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT | |
90 | | - |
91 | | -[1]: https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables |
92 | | -[2]: https://docs.github.com/en/actions/reference/events-that-trigger-workflows |
93 | | -[3]: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#create |
94 | | -[4]: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#delete |
95 | | -[5]: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request |
96 | | -[6]: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review |
97 | | -[7]: https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#pull_request_review_comment |
| 3 | +This page has moved to [reference/github-variables.md](reference/github-variables.md). |
0 commit comments