Skip to content

Commit

Permalink
ci: migrate build workflow to use cordiverse reusable one (#134)
Browse files Browse the repository at this point in the history
* ci: migrate build workflow to use cordiverse reusable one

* ci: add ability to comment on pr
  • Loading branch information
MaikoTan committed Feb 20, 2024
1 parent 7a68259 commit fe172ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,9 @@ name: Build
on:
push:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled, unlabeled]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install
run: yarn
- name: Build
run: yarn build
uses: cordiverse/workflows/.github/workflows/build.yml@main
14 changes: 14 additions & 0 deletions .github/workflows/post-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Comment on Pull Requests

on:
workflow_run:
workflows: ["Build"]
types:
- completed

jobs:
upload:
permissions:
contents: read
pull-requests: write
uses: cordiverse/workflows/.github/workflows/post-comment.yml@main

0 comments on commit fe172ce

Please sign in to comment.