feat: run announce workflow in ci (#1938)
Some checks are pending
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run

This commit is contained in:
Myriad-Dreamin 2025-07-29 17:15:51 +08:00 committed by GitHub
parent e9ae352dfd
commit 5d2f32945c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 59 additions and 88 deletions

View file

@ -1,6 +1,11 @@
name: tinymist::build::vscode
on:
workflow_call:
inputs:
plan:
description: 'A description of the plan input'
required: true # or false, depending on whether the input is mandatory
type: string # or other appropriate type like boolean, number, etc.
secrets:
VSCODE_MARKETPLACE_TOKEN:
required: true

View file

@ -1,6 +1,11 @@
name: tinymist::check-e2e
on:
workflow_call:
inputs:
plan:
description: 'A description of the plan input'
required: true # or false, depending on whether the input is mandatory
type: string # or other appropriate type like boolean, number, etc.
env:
RUSTFLAGS: '-Dwarnings'

View file

@ -106,18 +106,22 @@ jobs:
outputs:
tag: ${{ steps.tag.outputs.tag }}
steps:
- id: tag # get the tag after the `refs/tags/` prefix
- uses: actions/checkout@v4
- id: tag # get the tag from package.json
run:
echo "tag=${{ github.ref }}" | sed 's/refs\/tags\///' >> "$GITHUB_OUTPUT"
echo "tag=$(jq -r '.version' editors/vscode/package.json)" >> $GITHUB_OUTPUT
- name: Show tag
run: echo "Tag is ${{ steps.tag.outputs.tag }}"
# announce:
# needs: [prepare-build]
# permissions:
# contents: write
# uses: ./.github/workflows/announce.yml
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
# with:
# tag: ${{ needs.prepare-build.outputs.tag }}
announce:
needs: [prepare-build]
permissions:
contents: write
uses: ./.github/workflows/announce.yml
if: ${{ startsWith(github.ref, 'refs/tags/') }}
secrets: inherit
with:
tag: ${{ needs.prepare-build.outputs.tag }}
build:
needs: [prepare-build] # , announce