diff options
| author | Aiden Cline <[email protected]> | 2025-11-09 12:47:36 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-11-09 12:47:36 -0600 |
| commit | 888761645751f5e3916567c0447df98274df1187 (patch) | |
| tree | fdbf5dfa675a3d401812e5a04b77d4b4a113afc7 /.github | |
| parent | 905c034885b38a6761998595e338305b9ff4c6f8 (diff) | |
| download | opencode-888761645751f5e3916567c0447df98274df1187.tar.gz opencode-888761645751f5e3916567c0447df98274df1187.zip | |
ci: sync zed
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/sync-zed-extension.yml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/.github/workflows/sync-zed-extension.yml b/.github/workflows/sync-zed-extension.yml index f8ffe8735..c9dea7bb7 100644 --- a/.github/workflows/sync-zed-extension.yml +++ b/.github/workflows/sync-zed-extension.yml @@ -11,22 +11,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - if: github.event_name == 'workflow_dispatch' with: fetch-depth: 0 - - name: Get latest version tag - if: github.event_name == 'workflow_dispatch' + - uses: ./.github/actions/setup-bun + + - name: Get version tag id: get_tag run: | - TAG=$(git tag --list 'v[0-9]*.*' --sort=-version:refname | head -n 1) + if [ "${{ github.event_name }}" = "release" ]; then + TAG="${{ github.event.release.tag_name }}" + else + TAG=$(git tag --list 'v[0-9]*.*' --sort=-version:refname | head -n 1) + fi echo "tag=${TAG}" >> $GITHUB_OUTPUT echo "Using tag: ${TAG}" - - uses: huacnlee/zed-extension-action@6a168731f1d994905eeb552b3b42b0cb6c4d12e6 - with: - extension-name: opencode - push-to: sst/zed-extensions - tag-name: ${{ github.event.release.tag_name || steps.get_tag.outputs.tag }} + - name: Sync Zed extension + run: | + ./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }} env: - COMMITTER_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} |
