sync-zed-extension.yml 914 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: "sync-zed-extension"
  2. on:
  3. workflow_dispatch:
  4. release:
  5. types: [published]
  6. jobs:
  7. zed:
  8. name: Release Zed Extension
  9. runs-on: blacksmith-4vcpu-ubuntu-2404
  10. steps:
  11. - uses: actions/checkout@v4
  12. with:
  13. fetch-depth: 0
  14. - uses: ./.github/actions/setup-bun
  15. - name: Get version tag
  16. id: get_tag
  17. run: |
  18. if [ "${{ github.event_name }}" = "release" ]; then
  19. TAG="${{ github.event.release.tag_name }}"
  20. else
  21. TAG=$(git tag --list 'v[0-9]*.*' --sort=-version:refname | head -n 1)
  22. fi
  23. echo "tag=${TAG}" >> $GITHUB_OUTPUT
  24. echo "Using tag: ${TAG}"
  25. - name: Sync Zed extension
  26. run: |
  27. ./script/sync-zed.ts ${{ steps.get_tag.outputs.tag }}
  28. env:
  29. ZED_EXTENSIONS_PAT: ${{ secrets.ZED_EXTENSIONS_PAT }}
  30. ZED_PR_PAT: ${{ secrets.ZED_PR_PAT }}