act/pkg/runner/testdata/basic/push.yml

39 lines
849 B
YAML
Raw Normal View History

name: basic
on: push
env:
TEST: value
jobs:
check:
runs-on: ubuntu-latest
steps:
- run: echo ${{ env.TEST }} | grep value
- run: env
2021-02-23 11:49:24 -06:00
- uses: docker://alpine:3.13
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}
build:
runs-on: ubuntu-latest
needs: [check]
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}}