Skip to content

Commit

Permalink
Merge pull request #203 from tj-actions/chore/cleanup-unused-code
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Jan 17, 2023
2 parents 31bcf17 + ec2c19e commit 1fefd64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -euo pipefail

if [[ $GITHUB_EVENT_NAME != 'release' && -z $INPUT_CURRENT_VERSION ]]; then
echo "Skipping: This should only run on release not '$GITHUB_EVENT_NAME'.";
Expand All @@ -14,8 +14,7 @@ CURRENT_TAG=$INPUT_CURRENT_VERSION && exit_status=$? || exit_status=$?
PATTERN=$INPUT_PATTERN

if [[ -z "$CURRENT_TAG" ]]; then
TAG=$(git tag --sort=-v:refname | grep -vE "^v[0-9]+$" | head -n 2 | tail -n 1)
CURRENT_TAG=$TAG
CURRENT_TAG=$(git tag --sort=-v:refname | grep -vE "^v[0-9]+$" | head -n 2 | tail -n 1) && exit_status=$? || exit_status=$?
fi

if [[ $exit_status -ne 0 ]]; then
Expand Down

0 comments on commit 1fefd64

Please sign in to comment.