Added the ability to replace some placeholders in the screeps code (#12)
All checks were successful
Lint / pre-commit Linting (push) Successful in 29s

added the `git-replace` option.
Replaceing {{gitRef}}, {{deployTime}} and {{gitHash}}.

Reviewed-on: #12
Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
2023-12-25 02:22:42 +01:00
committed by Philipp Horstenkamp
parent a039bc1e28
commit e342ceca6f
3 changed files with 135 additions and 2 deletions

View File

@ -37,6 +37,9 @@ inputs:
description: 'Branch in Screeps to which the code will be uploaded (default: default).'
required: false
default: default
git-replace:
description: Allows for the overwrite of the "{{gitRef}}", "{{gitHash}}" and "{{deployTime}}" values in the file matching the file pattern. The file pattern will be combined with the prefix.
required: false
runs:
using: node12
main: index.js