From 9da62cd1ddfbf582f88f1c2f28620af9625bfa17 Mon Sep 17 00:00:00 2001 From: Boshen Date: Thu, 6 Jun 2024 20:38:43 +0800 Subject: [PATCH] test --- .github/workflows/prepare_release_crates.yml | 42 ++++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml index 441c223dd050b2..aa7111ea6c7737 100644 --- a/.github/workflows/prepare_release_crates.yml +++ b/.github/workflows/prepare_release_crates.yml @@ -2,6 +2,9 @@ name: Prepare Release Crates on: workflow_dispatch: + push: + branches: + - trigger-other-workflow concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -10,10 +13,43 @@ concurrency: permissions: pull-requests: write contents: write + actions: write jobs: prepare_release: name: Prepare Release Crates - uses: ./.github/workflows/reusable_prepare_release.yml - with: - name: crates + runs-on: ubuntu-latest + steps: + - uses: taiki-e/checkout-action@v1 + + - uses: peter-evans/create-pull-request@v6 + id: pr + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: Release Test + committer: Boshen + author: Boshen + branch: release/test + branch-suffix: timestamp + title: Test + body: Test + assignees: Boshen + + - uses: peter-evans/create-or-update-comment@v4 + id: comment + with: + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ steps.pr.outputs.pull-request-number }} + body: Triggering Ecosystem CI + + - uses: benc-uk/workflow-dispatch@v1 + with: + workflow: ecosystem-ci.yml + repo: oxc-project/oxlint-ecosystem-ci + token: ${{ secrets.PAT }} + ref: main + inputs: '{ "issue-number": ${{ steps.pr.outputs.pull-request-number }}, "comment-id": ${{ steps.comment.outputs.comment-id }} }' + + # uses: ./.github/workflows/reusable_prepare_release.yml + # with: + # name: crates