From 60238dd3b7afd325c59a63bdb80be3ee19ef356f Mon Sep 17 00:00:00 2001 From: Franz Diebold Date: Wed, 25 Nov 2020 15:38:58 +0100 Subject: [PATCH 1/2] Improve demo: Add more environment variables and also trigger on pull_request. --- .github/workflows/demo.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index ae8aca1..e7b245d 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -1,6 +1,6 @@ name: Demo -on: [push] +on: [push, pull_request] jobs: linux: @@ -25,6 +25,13 @@ jobs: echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" echo "GITHUB_SHA=$GITHUB_SHA" echo "GITHUB_REF=$GITHUB_REF" + echo "GITHUB_ACTION=$GITHUB_ACTION" + echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" + echo "GITHUB_EVENT_PATH=$GITHUB_EVENT_PATH" + echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" + echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF" + echo "GITHUB_BASE_REF=$GITHUB_BASE_REF" + echo "GITHUB_RUN_ID=$GITHUB_RUN_ID" windows: name: Windows Demo @@ -48,6 +55,13 @@ jobs: echo "GITHUB_REPOSITORY=$Env:GITHUB_REPOSITORY" echo "GITHUB_SHA=$Env:GITHUB_SHA" echo "GITHUB_REF=$Env:GITHUB_REF" + echo "GITHUB_ACTION=$Env:GITHUB_ACTION" + echo "GITHUB_EVENT_NAME=$Env:GITHUB_EVENT_NAME" + echo "GITHUB_EVENT_PATH=$Env:GITHUB_EVENT_PATH" + echo "GITHUB_WORKSPACE=$Env:GITHUB_WORKSPACE" + echo "GITHUB_HEAD_REF=$Env:GITHUB_HEAD_REF" + echo "GITHUB_BASE_REF=$Env:GITHUB_BASE_REF" + echo "GITHUB_RUN_ID=$Env:GITHUB_RUN_ID" macos: name: macOS Demo @@ -71,3 +85,10 @@ jobs: echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" echo "GITHUB_SHA=$GITHUB_SHA" echo "GITHUB_REF=$GITHUB_REF" + echo "GITHUB_ACTION=$GITHUB_ACTION" + echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" + echo "GITHUB_EVENT_PATH=$GITHUB_EVENT_PATH" + echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" + echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF" + echo "GITHUB_BASE_REF=$GITHUB_BASE_REF" + echo "GITHUB_RUN_ID=$GITHUB_RUN_ID" From 5ec21e5014be8ce2a55bc2fe3eec45e2682f5ea4 Mon Sep 17 00:00:00 2001 From: Franz Diebold Date: Sun, 29 Nov 2020 07:10:51 +0100 Subject: [PATCH 2/2] Add more GitHub environment variables to demo. --- .github/workflows/demo.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index f7c67ea..f520d9f 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -29,13 +29,11 @@ jobs: echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" echo "GITHUB_SHA=$GITHUB_SHA" echo "GITHUB_REF=$GITHUB_REF" - echo "GITHUB_ACTION=$GITHUB_ACTION" - echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" - echo "GITHUB_EVENT_PATH=$GITHUB_EVENT_PATH" - echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF" echo "GITHUB_BASE_REF=$GITHUB_BASE_REF" echo "GITHUB_RUN_ID=$GITHUB_RUN_ID" + echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" + echo "GITHUB_ACTION=$GITHUB_ACTION" windows: name: Windows Demo @@ -63,13 +61,11 @@ jobs: echo "GITHUB_REPOSITORY=$Env:GITHUB_REPOSITORY" echo "GITHUB_SHA=$Env:GITHUB_SHA" echo "GITHUB_REF=$Env:GITHUB_REF" - echo "GITHUB_ACTION=$Env:GITHUB_ACTION" - echo "GITHUB_EVENT_NAME=$Env:GITHUB_EVENT_NAME" - echo "GITHUB_EVENT_PATH=$Env:GITHUB_EVENT_PATH" - echo "GITHUB_WORKSPACE=$Env:GITHUB_WORKSPACE" echo "GITHUB_HEAD_REF=$Env:GITHUB_HEAD_REF" echo "GITHUB_BASE_REF=$Env:GITHUB_BASE_REF" echo "GITHUB_RUN_ID=$Env:GITHUB_RUN_ID" + echo "GITHUB_EVENT_NAME=$Env:GITHUB_EVENT_NAME" + echo "GITHUB_ACTION=$Env:GITHUB_ACTION" macos: name: macOS Demo @@ -97,10 +93,8 @@ jobs: echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" echo "GITHUB_SHA=$GITHUB_SHA" echo "GITHUB_REF=$GITHUB_REF" - echo "GITHUB_ACTION=$GITHUB_ACTION" - echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" - echo "GITHUB_EVENT_PATH=$GITHUB_EVENT_PATH" - echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" echo "GITHUB_HEAD_REF=$GITHUB_HEAD_REF" echo "GITHUB_BASE_REF=$GITHUB_BASE_REF" echo "GITHUB_RUN_ID=$GITHUB_RUN_ID" + echo "GITHUB_EVENT_NAME=$GITHUB_EVENT_NAME" + echo "GITHUB_ACTION=$GITHUB_ACTION"