mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-05-17 10:25:08 +00:00
4.0 KiB
4.0 KiB
Available GitHub Variables
All GitHub variables availables in your workflow in addition of ones exposed by this Action
Table of Contents
Default environment variables
Read the official documentation about Default environment variables.
Action-managed Environment Variables
| Action-managed Variables | Can be suffix by |
|---|---|
| GITHUB_REPOSITORY | _SLUG, _SLUG_URL |
| GITHUB_REF | _SLUG, _SLUG_URL |
| GITHUB_HEAD_REF | _SLUG, _SLUG_URL |
| GITHUB_BASE_REF | _SLUG, _SLUG_URL |
| GITHUB_SHA | _SHORT |
Variables from events
Read the official documentation about Events that trigger workflows.
Action-managed Event Variables
create
Checkout create webhook payload content
| Action-managed Variables | Available as |
|---|---|
| github.event.ref | GITHUB_EVENT_REF_SLUG |
| github.event.ref | GITHUB_EVENT_REF_SLUG_URL |
delete
Checkout delete webhook payload content
| Action-managed Variables | Available as |
|---|---|
| github.event.ref | GITHUB_EVENT_REF_SLUG |
| github.event.ref | GITHUB_EVENT_REF_SLUG_URL |
pull_request
Checkout pull_request webhook payload content
| Action-managed Variables | Available as |
|---|---|
| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT |
pull_request_review
Checkout pull_request_review webhook payload content
| Action-managed Variables | Available as |
|---|---|
| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT |
pull_request_review_comment
Checkout pull_request_review_comment webhook payload content
| Action-managed Variables | Available as |
|---|---|
| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT |
pull_request_target
Checkout pull_request webhook payload content
| Action-managed Variables | Available as |
|---|---|
| github.event.pull_request.head.sha | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT |