From 0e50ca8b30b59ca818116f6a3c53252524c9ccaf Mon Sep 17 00:00:00 2001 From: skydread1 Date: Tue, 3 Sep 2024 19:05:59 +0800 Subject: [PATCH] Fix CI to work with fork --- .github/workflows/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08d784c..8042da1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,8 +4,13 @@ on: push: branches-ignore: - master + pull_request: + types: [opened, ready_for_review, review_requested] + pull_request_review: + types: [submitted] -permissions: write-all +permissions: + contents: write jobs: build: @@ -30,12 +35,15 @@ jobs: run: clojure -M:web/test-headless - name: Build main.js + if: github.event.action == 'review_requested' || github.event.action == 'ready_for_review' run: clojure -T:build js-bundle - name: Generate RSS feed + if: github.event.action == 'review_requested' || github.event.action == 'ready_for_review' run: clojure -T:build rss-feed - name: Commit js bundle and rss feed + if: github.event.review.state == 'approved' uses: EndBug/add-and-commit@v9 with: add: |