diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1538c66e1..cdd22592b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/post-comment.yml b/.github/workflows/post-comment.yml new file mode 100644 index 000000000..c5ec5a976 --- /dev/null +++ b/.github/workflows/post-comment.yml @@ -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