Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LordLumineer committed Nov 12, 2023
1 parent 39ab56d commit 9d30c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
- name: Get Previous Version
id: get_previous_version
run: |
PREVIOUS_VERSION=$(git show origin/main:ThroneAPI.py | grep -oP "API_VERSION = '\K[0-9.]+" )
git fetch origin
PREVIOUS_VERSION=$(git show origin/main:ThroneAPI.py | grep -oP "API_VERSION = '\K[0-9.]+")
if [ -z "$PREVIOUS_VERSION" ]; then
echo "::set-output name=version::0.0.0" # Set a default version for the first commit
else
Expand Down

0 comments on commit 9d30c12

Please sign in to comment.