Skip to content

Commit

Permalink
Fix CI to work with fork (#67)
Browse files Browse the repository at this point in the history
* Fix CI to work with fork

* Run CI build step on push for owner

* Compile the cljs to the js bundle and update RSS feed

* Set posts pubDate to 18:00 in rss feed items
  • Loading branch information
skydread1 authored Sep 3, 2024
1 parent 36a148f commit d7fdd1d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
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_name == 'push' || github.event.action == 'review_requested' || github.event.action == 'ready_for_review'
run: clojure -T:build js-bundle

- name: Generate RSS feed
if: github.event_name == 'push' || 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_name == 'push' || github.event.review.state == 'approved'
uses: EndBug/add-and-commit@v9
with:
add: |
Expand Down
Loading

0 comments on commit d7fdd1d

Please sign in to comment.