Skip to content

Commit 0c181c4

Browse files
committed
Filtering on dev suffix for dev-packages release. Release flow will only work on a main branch call.
1 parent ab62cc1 commit 0c181c4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/dev-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: extract_version
2929
shell: bash
3030
run: |
31-
VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
31+
VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+-dev(\.[0-9]+)?$/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md)
3232
echo "Detected Version: $VERSION"
3333
echo "VERSION=$VERSION" >> $GITHUB_ENV
3434

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
release:
88
name: Release
99
runs-on: windows-latest
10+
if: github.ref == 'refs/heads/main'
1011

1112
steps:
1213
- name: Checkout Repository

0 commit comments

Comments
 (0)