Merge pull request #8 from actions/build-revision
Initialize JEKYLL_BUILD_REVISION with GITHUB_SHA (feedback)
This commit is contained in:
+2
-2
@@ -16,9 +16,9 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
build_revision:
|
build_revision:
|
||||||
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA when not provided.'
|
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA.'
|
||||||
required: false
|
required: false
|
||||||
default:
|
default: ${{ github.sha }}
|
||||||
verbose:
|
verbose:
|
||||||
description: 'Verbose output'
|
description: 'Verbose output'
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages
|
|||||||
export JEKYLL_ENV="production"
|
export JEKYLL_ENV="production"
|
||||||
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN
|
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN
|
||||||
export PAGES_REPO_NWO=$GITHUB_REPOSITORY
|
export PAGES_REPO_NWO=$GITHUB_REPOSITORY
|
||||||
export JEKYLL_BUILD_REVISION=${INPUT_BUILD_REVISION:="$GITHUB_SHA"}
|
export JEKYLL_BUILD_REVISION=$INPUT_BUILD_REVISION
|
||||||
|
|
||||||
# Set verbose flag
|
# Set verbose flag
|
||||||
if [ "$INPUT_VERBOSE" = 'true' ]; then
|
if [ "$INPUT_VERBOSE" = 'true' ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user