Skip to content

Commit

Permalink
Merge pull request #8 from actions/build-revision
Browse files Browse the repository at this point in the history
Initialize JEKYLL_BUILD_REVISION with GITHUB_SHA (feedback)
  • Loading branch information
Yoann Chaudet authored and GitHub committed Jan 6, 2022
2 parents 0c67c6e + 2757a54 commit 53445b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ inputs:
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.'
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA.'
required: false
default:
default: ${{ github.sha }}
verbose:
description: 'Verbose output'
required: false
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +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"}
export JEKYLL_BUILD_REVISION=$INPUT_BUILD_REVISION

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

0 comments on commit 53445b3

Please sign in to comment.