Created
June 1, 2020 15:16
-
-
Save nashmaniac/28de337fe4f86546450719d63f154fd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sample Workflow | |
on: | |
push: # enabling push event on master branch to fire the workflow | |
branches: | |
- master | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout out current code using public action | |
uses: actions/checkout@v2 | |
- name: get the list of files in our current directory and its subdirectory | |
run: | # this | enables us to multiple commands, good for formatting | |
pwd | |
ls -alR | |
job2: | |
runs-on: ubuntu-latest | |
needs: [job1] | |
steps: | |
- name: print current files # this steps won't be showing any files as we didn't checkout our codes | |
run: | | |
pwd | |
ls -alR | |
job3: | |
runs-on: ubuntu-latest | |
steps: | |
- name: print env variables | |
run: echo $VAR1 $VAR2 $VAR3 | |
env: | |
VAR1: Thank you | |
VAR2: very much. | |
VAR3: Enjoy !!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment