Skip to content

Commit

Permalink
action: allow overriding default site-version
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Dec 13, 2023
1 parent 0213c67 commit 4b71a31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Path to Gluon site-directory
Working Directory


### site-version
#### Description
Optional Argument defining the version-string of the site.
This overrides Gluons default site-versioning.


### autoremove
#### Description
Remove build-directories after build
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ inputs:
description: Priority indicator for the autoupdater
release:
description: 'Version string for the release to use'
site-version:
description: 'Version string for the site to use'
runs:
using: 'composite'
steps:
Expand All @@ -57,6 +59,7 @@ runs:
--env ACTION_GLUON_DEPRECATED \
--env ACTION_GLUON_PRIORITY \
--env ACTION_GLUON_RELEASE \
--env ACTION_GLUON_SITE_VERSION \
--env ACTION_GLUON_TARGET \
--volume "$GITHUB_WORKSPACE/$ACTION_SITE_PATH:/gluon/site-repo" \
--volume "$GITHUB_WORKSPACE/$ACTION_GLUON_PATH:/gluon/gluon-repo" \
Expand All @@ -69,6 +72,7 @@ runs:
ACTION_GLUON_DEPRECATED: ${{ inputs.deprecated }}
ACTION_GLUON_PRIORITY: ${{ inputs.priority }}
ACTION_GLUON_RELEASE: ${{ inputs.release }}
ACTION_GLUON_SITE_VERSION: ${{ inputs.site-version }}
ACTION_GLUON_TARGET: ${{ inputs.hardware-target }}
ACTION_MAKE_TARGET: ${{ inputs.make-target }}
ACTION_GLUON_PATH: ${{ inputs.gluon-path }}
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GLUON_MAKE_ARGS=""
[ -n "${ACTION_GLUON_AUTOUPDATER_ENABLED+x}" ] && GLUON_MAKE_ARGS="${GLUON_MAKE_ARGS} GLUON_AUTOUPDATER_ENABLED=${ACTION_GLUON_AUTOUPDATER_ENABLED}"
[ -n "${ACTION_GLUON_RELEASE+x}" ] && GLUON_MAKE_ARGS="${GLUON_MAKE_ARGS} GLUON_RELEASE=${ACTION_GLUON_RELEASE}"
[ -n "${ACTION_GLUON_PRIORITY+x}" ] && GLUON_MAKE_ARGS="${GLUON_MAKE_ARGS} GLUON_PRIORITY=${ACTION_GLUON_PRIORITY}"
[ -n "${ACTION_GLUON_SITE_VERSION}" ] && GLUON_MAKE_ARGS="${GLUON_MAKE_ARGS} GLUON_SITE_VERSION=${ACTION_GLUON_SITE_VERSION}"

echo "Building with ${BUILD_THREADS} threads"
echo "Extra args for build: '${GLUON_MAKE_ARGS}'"
Expand Down

0 comments on commit 4b71a31

Please sign in to comment.