Skip to content

Commit

Permalink
add weekly plublish action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed Jun 10, 2024
1 parent 7ce7394 commit 3046f03
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/weekly-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#schedule a book publish weekly, on Sundays, by merging
# master into the publication branch (which will then trigger the
# deploy-book.yml action)

name: "Weekly book publish"

on:
workflow_dispatch:
schedule:
- cron: '30 6 * * 0'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set Git config
run: |
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
- name: Merge master into publication
uses: actions/checkout@v4
run: |
git fetch --unshallow
git checkout publication
git pull
git merge --no-ff master -m "Auto-merge master back to publication"
git push

0 comments on commit 3046f03

Please sign in to comment.