Skip to content

Commit 6b6be56

Browse files
committed
export VERSION and *_VERSION variables
1 parent cade2b9 commit 6b6be56

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ jobs:
3333
id: extract_version
3434
shell: bash
3535
run: |
36-
VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
37-
echo "Detected Version: $VERSION"
38-
echo "COMMON_VERSION=$VERSION" >> $GITHUB_ENV
36+
COMMON_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
37+
echo "Detected Version: $COMMON_VERSION"
38+
echo "VERSION=$COMMON_VERSION" >> $GITHUB_ENV
39+
echo "COMMON_VERSION=$COMMON_VERSION" >> $GITHUB_ENV
3940
4041
- name: Run Pack for Common
4142
run: dotnet pack PowerSync/PowerSync.Common -c Release -o ${{ github.workspace }}/output
@@ -50,6 +51,7 @@ jobs:
5051
run: |
5152
MAUI_VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Maui/CHANGELOG.md)
5253
echo "Detected Version: $MAUI_VERSION"
54+
echo "VERSION=$MAUI_VERSION" >> $GITHUB_ENV
5355
echo "MAUI_VERSION=$MAUI_VERSION" >> $GITHUB_ENV
5456
5557
- name: Build MAUI Project

0 commit comments

Comments
 (0)