Compare commits
5 Commits
d6b52654ac
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 49745e6d29 | |||
| 2d41ba3b7d | |||
| da868d894b | |||
| 6e2ea2c2ad | |||
| 0902f0bb51 |
@@ -3,8 +3,7 @@ apt install jq -y
|
||||
git config --global user.email "cloud+git+runner@thorup.us"
|
||||
git config --global user.name "Git runner"
|
||||
CURRENT_VERSION=$INPUT_PREFIX$(jq -r .version package.json)
|
||||
echo $CURRENT_VERSION
|
||||
git checkout $CURRENT_VERSION
|
||||
COMMIT_ID=$(git rev-parse --short HEAD)
|
||||
|
||||
if [[ $INPUT_FORCE_OVERRIDE == true ]];
|
||||
then
|
||||
@@ -18,7 +17,7 @@ echo $PREVIOUS_VERSIONS
|
||||
if [[ $PREVIOUS_VERSIONS != *$CURRENT_VERSION* ]];
|
||||
then
|
||||
echo "Tag for version $CURRENT_VERSION not found. Creating tag..."
|
||||
git tag -a -m "Version $CURRENT_VERSION" $CURRENT_VERSION
|
||||
git push --follow-tags
|
||||
git tag -a $CURRENT_VERSION -m "Version $CURRENT_VERSION" $COMMIT_ID
|
||||
git push origin --tags
|
||||
echo "Tag created."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user