Skip to content

Commit 53445b3

Browse files
authored
Merge pull request #8 from actions/build-revision
Initialize JEKYLL_BUILD_REVISION with GITHUB_SHA (feedback)
2 parents 0c67c6e + 2757a54 commit 53445b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

action.yml.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ inputs:
1616
required: false
1717
default: true
1818
build_revision:
19-
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA when not provided.'
19+
description: 'The SHA-1 of the git commit for which the build is running. Default to GITHUB_SHA.'
2020
required: false
21-
default:
21+
default: ${{ github.sha }}
2222
verbose:
2323
description: 'Verbose output'
2424
required: false

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages
1717
export JEKYLL_ENV="production"
1818
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN
1919
export PAGES_REPO_NWO=$GITHUB_REPOSITORY
20-
export JEKYLL_BUILD_REVISION=${INPUT_BUILD_REVISION:="$GITHUB_SHA"}
20+
export JEKYLL_BUILD_REVISION=$INPUT_BUILD_REVISION
2121

2222
# Set verbose flag
2323
if [ "$INPUT_VERBOSE" = 'true' ]; then

0 commit comments

Comments
 (0)