Use CI to update mod version info

This commit is contained in:
Barichello 2022-02-01 20:07:37 -03:00
parent b945493421
commit 1ffd7a0194
No known key found for this signature in database
GPG Key ID: 29197D315AE4FF67
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ on:
- '*'
env:
NORTHSTAR_VERSION: ${{github.ref_name}}
NORTHSTAR_VERSION: ${{ github.ref_name }}
jobs:
build-launcher:
@ -56,6 +56,12 @@ jobs:
repository: R2Northstar/NorthstarMods
ref: ${{ env.NORTHSTAR_VERSION }}
path: northstar-mods
- name: Update mod version info
run: |
export MOD_VERSION=$(echo $NORTHSTAR_VERSION | tr -d 'v')
cat <<< $(jq ".Version = \"${MOD_VERSION}\"" northstar-mods/Northstar.Client/mod.json) > northstar-mods/Northstar.Client/mod.json
cat <<< $(jq ".Version = \"${MOD_VERSION}\"" northstar-mods/Northstar.Custom/mod.json) > northstar-mods/Northstar.Custom/mod.json
cat <<< $(jq ".Version = \"${MOD_VERSION}\"" northstar-mods/Northstar.CustomServers/mod.json) > northstar-mods/Northstar.CustomServers/mod.json
- name: Download repositories
run: |
mv northstar/release/* northstar/.