Skip to content

Commit

Permalink
ci: allow for feature branch releases via stable- naming
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed May 30, 2024
1 parent 89e806b commit e7d34b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
on:
push:
branches:
- stable
- stable*
- alpha*
- beta*
- rc*
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: provide network versioning
shell: bash
run: |
if [[ "$GITHUB_REF_NAME" != "main" && "$GITHUB_REF_NAME" != "stable" && "$GITHUB_REF_NAME" != "alpha" && "$GITHUB_REF_NAME" != "beta" ]]; then
if [[ "$GITHUB_REF_NAME" != "main" && ! "$GITHUB_REF_NAME" =~ ^stable && "$GITHUB_REF_NAME" != "alpha" && "$GITHUB_REF_NAME" != "beta" ]]; then
echo "NETWORK_VERSION_MODE=restricted" >> $GITHUB_ENV
fi
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
# only publish if we're on the stable branch
- name: Conditionally remove 'publish = false' from workspace in release-plz.toml on stable branch
if: github.ref_name == 'stable'
if: startsWith(github.ref_name, 'stable')
run: |
ls -la
sed -i '/^\[workspace\]/,/^\[/ {/^publish = false$/d;}' ./release-plz.toml
Expand Down

0 comments on commit e7d34b8

Please sign in to comment.