2020-02-10 17:27:05 -06:00
|
|
|
name: basic
|
|
|
|
on: push
|
|
|
|
|
2020-03-06 15:39:01 -06:00
|
|
|
env:
|
|
|
|
TEST: value
|
|
|
|
|
2020-02-10 17:27:05 -06:00
|
|
|
jobs:
|
2020-02-19 21:16:40 -06:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-03-06 15:39:01 -06:00
|
|
|
- run: echo ${{ env.TEST }} | grep value
|
|
|
|
- run: env
|
|
|
|
- uses: docker://alpine:3.8
|
|
|
|
with:
|
|
|
|
somekey: ${{ env.TEST }}
|
|
|
|
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
2020-02-24 19:48:21 -06:00
|
|
|
- run: ls
|
2020-02-23 17:01:25 -06:00
|
|
|
- run: echo 'hello world'
|
|
|
|
- run: echo ${GITHUB_SHA} >> /github/sha.txt
|
|
|
|
- run: cat /github/sha.txt | grep ${GITHUB_SHA}
|
2020-02-19 21:16:40 -06:00
|
|
|
|
2020-02-10 17:27:05 -06:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2020-02-19 21:16:40 -06:00
|
|
|
needs: [check]
|
2020-02-10 17:27:05 -06:00
|
|
|
steps:
|
|
|
|
- uses: ./actions/action1
|
|
|
|
with:
|
|
|
|
args: echo 'build'
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [build]
|
|
|
|
steps:
|
|
|
|
- uses: docker://ubuntu:18.04
|
|
|
|
with:
|
2020-02-23 17:01:25 -06:00
|
|
|
args: env
|
|
|
|
- uses: docker://ubuntu:18.04
|
|
|
|
with:
|
|
|
|
entrypoint: /bin/echo
|
|
|
|
args: ${{github.event_name}}
|