2020-07-13 07:39:14 -04:00
|
|
|
name: Demo
|
|
|
|
|
2020-11-25 09:38:58 -05:00
|
|
|
on: [push, pull_request]
|
2020-07-13 07:39:14 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Linux Demo
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-11-26 14:44:14 -05:00
|
|
|
- uses: FranzDiebold/github-env-vars-action@v1.3.0
|
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-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_SLUG=$GITHUB_REPOSITORY_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_OWNER_SLUG=$GITHUB_REPOSITORY_OWNER_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
echo "GITHUB_REPOSITORY_NAME=$GITHUB_REPOSITORY_NAME"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_NAME_SLUG=$GITHUB_REPOSITORY_NAME_SLUG"
|
|
|
|
echo "GITHUB_REF_SLUG=$GITHUB_REF_SLUG"
|
2020-11-26 14:44:14 -05:00
|
|
|
echo "GITHUB_BRANCH_NAME=$GITHUB_BRANCH_NAME"
|
|
|
|
echo "GITHUB_BRANCH_NAME_SLUG=$GITHUB_BRANCH_NAME_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
echo "GITHUB_REF_NAME=$GITHUB_REF_NAME"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REF_NAME_SLUG=$GITHUB_REF_NAME_SLUG"
|
2020-11-26 14:44:14 -05:00
|
|
|
echo "GITHUB_HEAD_REF_SLUG=$GITHUB_HEAD_REF_SLUG"
|
|
|
|
echo "GITHUB_BASE_REF_SLUG=$GITHUB_BASE_REF_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
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-11-25 09:38:58 -05:00
|
|
|
echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
|
|
|
|
echo "GITHUB_BASE_REF=$GITHUB_BASE_REF"
|
|
|
|
echo "GITHUB_RUN_ID=$GITHUB_RUN_ID"
|
2020-11-29 01:10:51 -05:00
|
|
|
echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME"
|
|
|
|
echo "GITHUB_ACTION=$GITHUB_ACTION"
|
2020-11-29 01:40:21 -05:00
|
|
|
echo "GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER"
|
2020-11-29 04:10:05 -05:00
|
|
|
echo "GITHUB_WORKFLOW=$GITHUB_WORKFLOW"
|
2020-07-13 07:39:14 -04:00
|
|
|
|
|
|
|
windows:
|
|
|
|
name: Windows Demo
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2020-11-26 14:44:14 -05:00
|
|
|
- uses: FranzDiebold/github-env-vars-action@v1.3.0
|
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-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_SLUG=$Env:GITHUB_REPOSITORY_SLUG"
|
2020-07-13 07:47:42 -04:00
|
|
|
echo "GITHUB_REPOSITORY_OWNER=$Env:GITHUB_REPOSITORY_OWNER"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_OWNER_SLUG=$Env:GITHUB_REPOSITORY_OWNER_SLUG"
|
2020-07-13 07:47:42 -04:00
|
|
|
echo "GITHUB_REPOSITORY_NAME=$Env:GITHUB_REPOSITORY_NAME"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_NAME_SLUG=$Env:GITHUB_REPOSITORY_NAME_SLUG"
|
|
|
|
echo "GITHUB_REF_SLUG=$Env:GITHUB_REF_SLUG"
|
2020-11-26 14:44:14 -05:00
|
|
|
echo "GITHUB_BRANCH_NAME=$Env:GITHUB_BRANCH_NAME"
|
|
|
|
echo "GITHUB_BRANCH_NAME_SLUG=$Env:GITHUB_BRANCH_NAME_SLUG"
|
2020-07-13 07:47:42 -04:00
|
|
|
echo "GITHUB_REF_NAME=$Env:GITHUB_REF_NAME"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REF_NAME_SLUG=$Env:GITHUB_REF_NAME_SLUG"
|
2020-11-26 14:44:14 -05:00
|
|
|
echo "GITHUB_HEAD_REF_SLUG=$Env:GITHUB_HEAD_REF_SLUG"
|
|
|
|
echo "GITHUB_BASE_REF_SLUG=$Env:GITHUB_BASE_REF_SLUG"
|
2020-07-13 07:47:42 -04:00
|
|
|
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-11-25 09:38:58 -05:00
|
|
|
echo "GITHUB_HEAD_REF=$Env:GITHUB_HEAD_REF"
|
|
|
|
echo "GITHUB_BASE_REF=$Env:GITHUB_BASE_REF"
|
|
|
|
echo "GITHUB_RUN_ID=$Env:GITHUB_RUN_ID"
|
2020-11-29 01:10:51 -05:00
|
|
|
echo "GITHUB_EVENT_NAME=$Env:GITHUB_EVENT_NAME"
|
|
|
|
echo "GITHUB_ACTION=$Env:GITHUB_ACTION"
|
2020-11-29 01:40:21 -05:00
|
|
|
echo "GITHUB_RUN_NUMBER=$Env:GITHUB_RUN_NUMBER"
|
2020-11-29 04:10:05 -05:00
|
|
|
echo "GITHUB_WORKFLOW=$Env:GITHUB_WORKFLOW"
|
2020-07-13 07:39:14 -04:00
|
|
|
|
|
|
|
macos:
|
|
|
|
name: macOS Demo
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2020-11-26 14:44:14 -05:00
|
|
|
- uses: FranzDiebold/github-env-vars-action@v1.3.0
|
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-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_SLUG=$GITHUB_REPOSITORY_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
echo "GITHUB_REPOSITORY_OWNER=$GITHUB_REPOSITORY_OWNER"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_OWNER_SLUG=$GITHUB_REPOSITORY_OWNER_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
echo "GITHUB_REPOSITORY_NAME=$GITHUB_REPOSITORY_NAME"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REPOSITORY_NAME_SLUG=$GITHUB_REPOSITORY_NAME_SLUG"
|
|
|
|
echo "GITHUB_REF_SLUG=$GITHUB_REF_SLUG"
|
2020-11-26 14:44:14 -05:00
|
|
|
echo "GITHUB_BRANCH_NAME=$GITHUB_BRANCH_NAME"
|
|
|
|
echo "GITHUB_BRANCH_NAME_SLUG=$GITHUB_BRANCH_NAME_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
echo "GITHUB_REF_NAME=$GITHUB_REF_NAME"
|
2020-07-16 05:13:18 -04:00
|
|
|
echo "GITHUB_REF_NAME_SLUG=$GITHUB_REF_NAME_SLUG"
|
2020-11-26 14:44:14 -05:00
|
|
|
echo "GITHUB_HEAD_REF_SLUG=$GITHUB_HEAD_REF_SLUG"
|
|
|
|
echo "GITHUB_BASE_REF_SLUG=$GITHUB_BASE_REF_SLUG"
|
2020-07-13 07:39:14 -04:00
|
|
|
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-11-25 09:38:58 -05:00
|
|
|
echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
|
|
|
|
echo "GITHUB_BASE_REF=$GITHUB_BASE_REF"
|
|
|
|
echo "GITHUB_RUN_ID=$GITHUB_RUN_ID"
|
2020-11-29 01:10:51 -05:00
|
|
|
echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME"
|
|
|
|
echo "GITHUB_ACTION=$GITHUB_ACTION"
|
2020-11-29 01:40:21 -05:00
|
|
|
echo "GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER"
|
2020-11-29 04:10:05 -05:00
|
|
|
echo "GITHUB_WORKFLOW=$GITHUB_WORKFLOW"
|