forked from helm-unittest/helm-unittest
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
71 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'autotag' | ||
description: 'https://github.com/pantheon-systems/autotag' | ||
inputs: | ||
branch: | ||
description: 'Git branch to scan' | ||
required: false | ||
default: 'master' | ||
repo: | ||
description: 'Path to the repo' | ||
required: false | ||
default: './' | ||
pre-release-name: | ||
description: 'create a pre-release tag with this name (can be: alpha|beta|pre|rc)' | ||
required: false | ||
default: '' | ||
pre-release-timestamp: | ||
description: 'create a pre-release tag and append a timestamp (can be: datetime|epoch)' | ||
required: false | ||
default: '' | ||
dry-run: | ||
description: 'Just output the next version, don''t autotag' | ||
required: false | ||
default: '' | ||
outputs: | ||
version: | ||
description: 'The new version' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.who-to-greet }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
cd "$GITHUB_WORKSPACE" | ||
cd "${GITHUB_WORKSPACE}" | ||
|
||
/autotag "$@" | ||
if [ -n "${INPUT_DRY_RUN}" ]; then | ||
echo "Running in dry-run mode" | ||
DRY_RUN="-n" | ||
fi | ||
|
||
version=$(/autotag --branch=${INPUT_BRANCH} --repo=${INPUT_REPO} --pre-release-name=${INPUT_PRE_RELEASE_NAME} --pre-release-timestamp=${INPUT_PRE_RELEASE_TIMESTAMP} ${DRY_RUN}) | ||
|
||
echo "::set-output name=version::$version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: "unittest3" | ||
name: "unittest" | ||
version: "1.0.3" | ||
usage: "unittest for helm 3 charts" | ||
description: "Unit test for helm 3 charts in YAML with ease to keep your chart functional and robust." | ||
ignoreFlags: false | ||
command: "$HELM_PLUGIN_DIR/bin/unittest3" | ||
command: "$HELM_PLUGIN_DIR/bin/unittest" | ||
hooks: | ||
install: "cd $HELM_PLUGIN_DIR; ./install_plugin.sh" | ||
update: "cd $HELM_PLUGIN_DIR; ./install_plugin.sh" |