mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
fix: several fixes to auto release (#1959)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / build (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 / announce (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / build (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 / announce (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
+ use `GITHUB_TOKEN` to checkout tinymist in `release-nightly.yml`. Therefore, GitHub Actions should be granted write permission. + tag directives must start from the line start. + use the same bot name and email in actions.
This commit is contained in:
parent
f118d81464
commit
cf0fb1c00d
3 changed files with 8 additions and 5 deletions
3
.github/workflows/auto-tag.yml
vendored
3
.github/workflows/auto-tag.yml
vendored
|
|
@ -57,7 +57,8 @@ jobs:
|
|||
const prBody = pr.body || '';
|
||||
console.log('PR Body:', prBody);
|
||||
|
||||
const tagRegex = /\+tag\s+(v\d+\.\d+\.\d+(?:-[a-zA-Z0-9]+)?)/;
|
||||
const tagRegex = /^\+tag\s+(v\d+\.\d+\.\d+(?:-[a-zA-Z0-9]+)?)/m;
|
||||
|
||||
const match = prBody.match(tagRegex);
|
||||
|
||||
if (match) {
|
||||
|
|
|
|||
2
.github/workflows/detect-pr-tag.yml
vendored
2
.github/workflows/detect-pr-tag.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
const prBody = context.payload.pull_request.body || '';
|
||||
console.log('PR Body:', prBody);
|
||||
|
||||
const tagRegex = /\+tag\s+(v\d+\.\d+\.\d+(?:-[a-zA-Z0-9]+)?)/;
|
||||
const tagRegex = /^\+tag\s+(v\d+\.\d+\.\d+(?:-[a-zA-Z0-9]+)?)/m;
|
||||
const match = prBody.match(tagRegex);
|
||||
|
||||
if (match) {
|
||||
|
|
|
|||
8
.github/workflows/release-nightly.yml
vendored
8
.github/workflows/release-nightly.yml
vendored
|
|
@ -18,12 +18,14 @@ on:
|
|||
jobs:
|
||||
check-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: nightly
|
||||
token: ${{ secrets.NIGHTLY_REPO_TOKEN }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Node.js
|
||||
|
|
@ -36,8 +38,8 @@ jobs:
|
|||
|
||||
- name: Setup Git
|
||||
run: |
|
||||
git config --global user.name "GitHub Actions"
|
||||
git config --global user.email "actions@github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue