Skip to content

Commit 6432cd4

Browse files
committed
fix workflow force_build env
1 parent 5b2b6ec commit 6432cd4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/beta-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Check for changes since last beta release
3333
id: changes
34+
env:
35+
FORCE_BUILD: ${{ github.event.inputs.force_build }}
3436
run: |
3537
LAST_BETA=$(git tag -l "*b*" --sort=-version:refname | head -n1)
3638
@@ -45,7 +47,7 @@ jobs:
4547
echo "commit_count=$COMMIT_COUNT" >> $GITHUB_OUTPUT
4648
echo "last_beta=$LAST_BETA" >> $GITHUB_OUTPUT
4749
48-
if [ "$COMMIT_COUNT" -gt 0 ] || [ "${{ github.event.inputs.force_build == 'true' }}" = "true" ]; then
50+
if [ "$COMMIT_COUNT" -gt 0 ] || [ "$FORCE_BUILD" = "true" ]; then
4951
echo "has_changes=true" >> $GITHUB_OUTPUT
5052
else
5153
echo "has_changes=false" >> $GITHUB_OUTPUT

.github/workflows/nightly-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Check for changes since last alpha release
3333
id: changes
34+
env:
35+
FORCE_BUILD: ${{ github.event.inputs.force_build }}
3436
run: |
3537
LAST_ALPHA=$(git tag -l "*alpha*" --sort=-version:refname | head -n1)
3638
@@ -46,7 +48,7 @@ jobs:
4648
echo "Commits since last alpha: $COMMIT_COUNT"
4749
echo "commit_count=$COMMIT_COUNT" >> $GITHUB_OUTPUT
4850
49-
if [ "$COMMIT_COUNT" -gt 0 ] || [ "${{ github.event.inputs.force_build == 'true' }}" = "true" ]; then
51+
if [ "$COMMIT_COUNT" -gt 0 ] || [ "$FORCE_BUILD" = "true" ]; then
5052
echo "has_changes=true" >> $GITHUB_OUTPUT
5153
echo "✅ Changes detected, proceeding with nightly build"
5254
else

0 commit comments

Comments
 (0)