Skip to content

Commit

Permalink
fix: use latest tag for version to work when running manually
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexxa committed Apr 25, 2024
1 parent cdfe9ad commit 14c7d50
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,23 @@ jobs:
token: ${{ secrets.GH_BASIC }}
lfs: true
submodules: 'recursive'
fetch-depth: 0 # So we can get all tags.

- name: 🔎 Read Current Project Verson
id: current-version
uses: battila7/get-version-action@v2
uses: WyriHaximus/github-action-get-previous-tag@v1
with:
fallback: "0.0.0-devbuild"

- name: 🖨 Print Current Version
run: |
echo "Current Version: ${{ steps.current-version.outputs.version-without-v }}"
echo "Current Version: ${{ steps.current-version.outputs.tag }}"
- name: 🧮 Compute Next Version
uses: chickensoft-games/next-godot-csproj-version@v1
uses: chickensoft-games/next-godot-csproj-version@v1
id: next-version
with:
project-version: ${{ steps.current-version.outputs.version-without-v }}
project-version: ${{ steps.current-version.outputs.tag }}
godot-version: global.json
bump: ${{ github.event.inputs.bump }}

Expand Down

0 comments on commit 14c7d50

Please sign in to comment.