-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub Actions Variables List #339
Comments
You can use jobs:
build:
name: Build
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- if: ${{ github.actor == "MickeyMouse" }}
run: ./runMickeyScripts.sh
- if: ${{ github.actor != "MickeyMouse" }}
run: ./runNotMickeyScripts.sh Resource: |
Just a slight change. The IF statement is after the desired 'run' command. The below code is working as intended.
|
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. |
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.
The text was updated successfully, but these errors were encountered: