Skip to content

Commit

Permalink
Fix path to DESCRIPTION on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Aug 8, 2023
1 parent 9f94f34 commit ab3a7ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/prepare-ptaxsim/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ runs:
- name: Get database version
id: version_db
run: |
echo "PTAXSIM_VERSION=$(sed -n 's/.*Wants_DB_Version: \([0-9]*\.[0-9]*\.[0-9]\).*/\1/p' ${{ github.workspace }}/DESCRIPTION)" >> $GITHUB_ENV
DESCRIPTION_PATH=$(echo ${{ github.workspace }}/DESCRIPTION | sed 's/\\/\//g')
echo "PTAXSIM_VERSION=$(sed -n 's/.*Wants_DB_Version: \([0-9]*\.[0-9]*\.[0-9]\).*/\1/p' $DESCRIPTION_PATH)" >> $GITHUB_ENV
echo "PTAXSIM_VERSION=${{ env.PTAXSIM_VERSION }}" >> $GITHUB_OUTPUT
shell: bash

Expand Down

0 comments on commit ab3a7ea

Please sign in to comment.