Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
urothis committed Dec 31, 2023
1 parent 8b38ef6 commit 45434d2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .actions/nwserver/parse/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
name: "Parse nwserver"
inputs:
path:
description: "Path to nwserver.exe"
required: true
type: string
default: ${{ github.workspace }}/data/bin/win32/nwserver.exe
outputs:
version:
description: "Version"
Expand All @@ -30,8 +24,11 @@ runs:
- name: Parse nwnee files
id: nwn
shell: bash
env:
WIN_BIN_DEPOT_ID: 704452
run: |
echo version=$(peres -v ${{ inputs.path }} -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p) >> $GITHUB_OUTPUT
echo major=$(semver get major $(peres -v ${{ inputs.path }} -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p)) >> $GITHUB_OUTPUT
echo minor=$(semver get minor $(peres -v ${{ inputs.path }} -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p)) >> $GITHUB_OUTPUT
echo patch=$(semver get patch $(peres -v ${{ inputs.path }} -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p)) >> $GITHUB_OUTPUT
cd ${{ github.workspace }}/DepotDownloader/DepotDownloader/depots/$WIN_BIN_DEPOT_ID/*/bin/win32/
echo version=$(peres -v nwserver.exe -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p) >> $GITHUB_OUTPUT
echo major=$(semver get major $(peres -v nwserver.exe -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p)) >> $GITHUB_OUTPUT
echo minor=$(semver get minor $(peres -v nwserver.exe -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p)) >> $GITHUB_OUTPUT
echo patch=$(semver get patch $(peres -v nwserver.exe -f csv | grep -v DEBUG | cut -d'.' -f2- | sed -n 2p)) >> $GITHUB_OUTPUT

0 comments on commit 45434d2

Please sign in to comment.