Skip to content

Commit 8f166e1

Browse files
Merge pull request #41 from SpectrumPro/not-my-username-patch-1
Fix indentation in build.yml for version computation
2 parents 25fabd8 + f6ae2fa commit 8f166e1

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,22 @@ jobs:
3939
with:
4040
lfs: true
4141
fetch-depth: 0
42-
42+
4343
- name: Compute build version
4444
id: version
4545
run: |
4646
if [[ "${{ env.IS_RELEASE }}" == "true" ]]; then
47-
if [[ -z "${{ inputs.version }}" ]]; then
48-
echo "❌ Release builds require a version"
49-
exit 1
50-
fi
51-
echo "VERSION=${{ inputs.version }}" >> $GITHUB_OUTPUT
47+
if [[ -z "${{ inputs.version }}" ]]; then
48+
echo "❌ Release builds require a version"
49+
exit 1
50+
fi
51+
echo "VERSION=${{ inputs.version }}" >> $GITHUB_OUTPUT
5252
else
53-
DATE=$(date -u +"%Y%m%d")
54-
SHA=$(git rev-parse --short HEAD)
55-
echo "VERSION=dev-${DATE}-${SHA}" >> $GITHUB_OUTPUT
53+
DATE=$(date -u +"%Y%m%d")
54+
SHA=$(git rev-parse --short HEAD)
55+
echo "VERSION=dev-${DATE}-${SHA}" >> $GITHUB_OUTPUT
56+
fi
57+
5658
5759
- name: Export Spectrum
5860
id: export

0 commit comments

Comments
 (0)