Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 905c034

Browse files
committed
ci: zed sync
1 parent 92f7c49 commit 905c034

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/sync-zed-extension.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,23 @@ jobs:
1010
name: Release Zed Extension
1111
runs-on: ubuntu-latest
1212
steps:
13+
- uses: actions/checkout@v4
14+
if: github.event_name == 'workflow_dispatch'
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Get latest version tag
19+
if: github.event_name == 'workflow_dispatch'
20+
id: get_tag
21+
run: |
22+
TAG=$(git tag --list 'v[0-9]*.*' --sort=-version:refname | head -n 1)
23+
echo "tag=${TAG}" >> $GITHUB_OUTPUT
24+
echo "Using tag: ${TAG}"
25+
1326
- uses: huacnlee/zed-extension-action@6a168731f1d994905eeb552b3b42b0cb6c4d12e6
1427
with:
1528
extension-name: opencode
1629
push-to: sst/zed-extensions
17-
tag-name: ${{ github.event.release.tag_name }}
30+
tag-name: ${{ github.event.release.tag_name || steps.get_tag.outputs.tag }}
1831
env:
1932
COMMITTER_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)