env/.github/workflows/demo.yml

59 lines
2.1 KiB
YAML
Raw Normal View History

2020-07-13 07:39:14 -04:00
name: Demo
on: [push]
jobs:
linux:
name: Linux Demo
runs-on: ubuntu-latest
steps:
2020-07-14 07:09:14 -04:00
- uses: franzdiebold/github-env-vars-action@1.1.2
2020-07-14 07:02:41 -04:00
- name: Print environment variables exposed by this action
2020-07-13 07:39:14 -04:00
run: |
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
echo "GITHUB_REPOSITORY_NAME=$GITHUB_REPOSITORY_NAME"
echo "GITHUB_REF_NAME=$GITHUB_REF_NAME"
echo "GITHUB_SHA_SHORT=$GITHUB_SHA_SHORT"
2020-07-14 07:02:41 -04:00
- name: Print environment variables exposed by GitHub
run: |
echo "GITHUB_ACTOR=$GITHUB_ACTOR"
echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY"
echo "GITHUB_SHA=$GITHUB_SHA"
echo "GITHUB_REF=$GITHUB_REF"
2020-07-13 07:39:14 -04:00
windows:
name: Windows Demo
runs-on: windows-latest
steps:
2020-07-14 07:09:14 -04:00
- uses: franzdiebold/github-env-vars-action@1.1.2
2020-07-14 07:02:41 -04:00
- name: Print environment variables exposed by this action
2020-07-13 07:39:14 -04:00
run: |
2020-07-13 07:47:42 -04:00
echo "GITHUB_REPOSITORY_OWNER=$Env:GITHUB_REPOSITORY_OWNER"
echo "GITHUB_REPOSITORY_NAME=$Env:GITHUB_REPOSITORY_NAME"
echo "GITHUB_REF_NAME=$Env:GITHUB_REF_NAME"
echo "GITHUB_SHA_SHORT=$Env:GITHUB_SHA_SHORT"
2020-07-14 07:02:41 -04:00
- name: Print environment variables exposed by GitHub
run: |
echo "GITHUB_ACTOR=$Env:GITHUB_ACTOR"
echo "GITHUB_REPOSITORY=$Env:GITHUB_REPOSITORY"
echo "GITHUB_SHA=$Env:GITHUB_SHA"
echo "GITHUB_REF=$Env:GITHUB_REF"
2020-07-13 07:39:14 -04:00
macos:
name: macOS Demo
runs-on: macos-latest
steps:
2020-07-14 07:09:14 -04:00
- uses: franzdiebold/github-env-vars-action@1.1.2
2020-07-14 07:02:41 -04:00
- name: Print environment variables exposed by this action
2020-07-13 07:39:14 -04:00
run: |
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
echo "GITHUB_REPOSITORY_NAME=$GITHUB_REPOSITORY_NAME"
echo "GITHUB_REF_NAME=$GITHUB_REF_NAME"
echo "GITHUB_SHA_SHORT=$GITHUB_SHA_SHORT"
2020-07-14 07:02:41 -04:00
- name: Print environment variables exposed by GitHub
run: |
echo "GITHUB_ACTOR=$GITHUB_ACTOR"
echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY"
echo "GITHUB_SHA=$GITHUB_SHA"
echo "GITHUB_REF=$GITHUB_REF"