Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix: try
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Dec 14, 2023
1 parent a461901 commit c7c9d20
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
- name: Read bdsversion file
id: read-version
run: |
VERSION_TYPE=$(grep -oP 'type=\K[^,]+' bdsversion)
VERSION_NUMBER=$(grep -oP 'version=\K[^,]+' bdsversion)
echo "version_type=${VERSION_TYPE}" >> $GITHUB_ENV
echo "version_number=${VERSION_NUMBER}" >> $GITHUB_ENV
$content = Get-Content -Path .\bdslibrary -Raw
$type = ($content | Select-String -Pattern 'type=(.*)' | ForEach-Object { $_.Matches.Groups[1].Value }).Trim()
$version = ($content | Select-String -Pattern 'version=(.*)' | ForEach-Object { $_.Matches.Groups[1].Value }).Trim()
echo "version_type=$type" >> $GITHUB_ENV
echo "version_number=$version" >> $GITHUB_ENV
- uses: xmake-io/github-action-setup-xmake@v1

Expand Down

0 comments on commit c7c9d20

Please sign in to comment.