Skip to content

Commit

Permalink
Initialize JEKYLL_BUILD_REVISION with GITHUB_SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Chaudet committed Jan 5, 2022
1 parent 3359c36 commit 0c67c6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
description: 'Publishes posts with a future date.'
required: false
default: true
build_revision:
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA when not provided.'
required: false
default:
verbose:
description: 'Verbose output'
required: false
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages
export JEKYLL_ENV="production"
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN
export PAGES_REPO_NWO=$GITHUB_REPOSITORY
export JEKYLL_BUILD_REVISION=${INPUT_BUILD_REVISION:="$GITHUB_SHA"}

# Set verbose flag
if [ "$INPUT_VERBOSE" = 'true' ]; then
Expand Down

0 comments on commit 0c67c6e

Please sign in to comment.