mirror of
https://github.com/sdras/awesome-actions.git
synced 2026-07-17 03:52:32 -05:00
[GH-ISSUE #339] GitHub Actions Variables List #3469
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RaviRamDhali on GitHub (Feb 29, 2020).
Original GitHub issue: https://github.com/sdras/awesome-actions/issues/339
Do you have a list of GitHub Action Variables? I am trying to grab the username and do steps bases on the specific user.
Example: GitHub user MickeyMouse > push > Action > if MickeyMouse do something > else > do another thing.
@fabasoad commented on GitHub (Mar 3, 2020):
You can use
githubcontext for such purpose. Example:Resource:
https://help.github.com/en/actions/reference/contexts-and-expression-syntax-for-github-actions
@RaviRamDhali commented on GitHub (Mar 14, 2020):
Just a slight change. The IF statement is after the desired 'run' command.
The below code is working as intended.
@sdras commented on GitHub (Aug 27, 2020):
This seems resolved, also this repo isn't really intended to be documentation but rather house documentation links. Thanks @fabasoad for answering and @RaviRamDhali for the clarification.