Skip to content

Commit ebd98c7

Browse files
committed
fix build workflow version date syntax
1 parent fb11ab8 commit ebd98c7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14+
outputs:
15+
version: ${{ steps.version.outputs.value }}
1416
steps:
1517
- uses: actions/checkout@v4
1618

19+
- id: version
20+
run: echo "value=dev-$(date +%Y%m%d%H%M)" >> $GITHUB_OUTPUT
21+
1722
- uses: oven-sh/setup-bun@v2
1823
with:
1924
bun-version: latest
@@ -25,7 +30,7 @@ jobs:
2530
run: |
2631
./packages/opencode/script/build.ts
2732
env:
28-
OPENCODE_VERSION: "0.0.0-dev-$(date +%Y%m%d%H%M)"
33+
OPENCODE_VERSION: "0.0.0-${{ steps.version.outputs.value }}"
2934
OPENCODE_RELEASE: "dev"
3035
GH_REPO: ${{ github.repository }}
3136

@@ -49,7 +54,7 @@ jobs:
4954
for f in */bin/*; do
5055
chmod +x "$f" 2>/dev/null || true
5156
done
52-
tag="dev-$(date +%Y%m%d%H%M)"
57+
tag="${{ steps.version.outputs.value }}"
5358
gh release create "$tag" --title "Development Build $tag" --notes "Automated dev build"
5459
for dir in */; do
5560
name="${dir%/}"

0 commit comments

Comments
 (0)