Skip to content

Commit 8361a2e

Browse files
committed
Workaround github.event_name not being workflow_call for build-binaries when called by release-binaries.
1 parent 2529a0f commit 8361a2e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-binaries.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ name: "Build Binaries"
44
# Do not build branches when a tag is pushed - this is handled by release-binaries.yml
55
on:
66
workflow_call:
7+
inputs:
8+
is_release:
9+
description: If true, we're building binaries for a release.
10+
type: boolean
11+
required: false
12+
default: true
713
workflow_dispatch:
814
push:
915
tags-ignore: '**'
@@ -88,7 +94,7 @@ jobs:
8894

8995
# Update version.moon depending on the event that triggered this workflow.
9096
- name: Update version.moon (release)
91-
if: ${{ github.event_name == 'workflow_call' }}
97+
if: ${{ inputs.is_release == true }}
9298
shell: bash
9399
run: |
94100
cd moonscript
@@ -97,7 +103,7 @@ jobs:
97103
cat version.moon
98104
99105
- name: Update version.moon (prerelease)
100-
if: ${{ github.event_name != 'workflow_call' }}
106+
if: ${{ inputs.is_release == false }}
101107
shell: bash
102108
run: |
103109
cd moonscript

0 commit comments

Comments
 (0)