Skip to content

Commit

Permalink
add ecosystem-ci workflow (#2834)
Browse files Browse the repository at this point in the history
* add ecosystem-ci workflow

* a fix
  • Loading branch information
dai-shi authored Nov 25, 2024
1 parent 94c186e commit ab9eaeb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Ecosystem CI

on:
issue_comment:
types: [created]

jobs:
trigger:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run') }}
steps:
- uses: actions/checkout@v4
with:
repository: 'jotaijs/jotai-ecosystem-ci'
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v3
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm run ecosystem-ci
id: run_command
env:
JOTAI_PKG: https://pkg.csb.dev/pmndrs/jotai/commit/${{ github.event.pull_request.head.sha.substring(0, 8) }}/jotai
- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
## Ecosystem CI Output
```
${{ steps.run_command.outputs.command_output }}
```

0 comments on commit ab9eaeb

Please sign in to comment.