diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml index 441c223dd050b2..9f7be59145b7bf 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,46 @@ 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 + + - run: echo "TEST" >> test.md + + - 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 + base: main + + - 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