Skip to content

Commit

Permalink
Fix CI to work with fork
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Sep 3, 2024
1 parent 36a148f commit 0e50ca8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down

0 comments on commit 0e50ca8

Please sign in to comment.