Skip to content

Commit

Permalink
Merge pull request #383 from codeoverflow-org/update-docs-saturday
Browse files Browse the repository at this point in the history
Automatically update docs and tarballs using a cronjob
  • Loading branch information
hlxid authored Dec 19, 2021
2 parents 423e7c0 + 7ace53b commit 92555fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI

on: [push, pull_request]
on:
push:
pull_request:
schedule:
# https://crontab.guru/#3_21_*_*_6
- cron: "3 21 * * 6"

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -132,7 +138,7 @@ jobs:
# if not we push the branch and set the upstream to it as well.
run: |
git fetch
git switch ${GITHUB_REF##refs/heads/} || git checkout -b ${GITHUB_REF##refs/heads/}
git switch ${GITHUB_REF##refs/heads/} || (git checkout -b ${GITHUB_REF##refs/heads/} && git push -u origin ${GITHUB_REF##refs/heads/})
- name: Clear publish directory
run: rm -rf publish/*
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
- "release/**"
schedule:
# https://crontab.guru/#3_21_*_*_6
- cron: "3 21 * * 6"

jobs:
build:
Expand Down

0 comments on commit 92555fd

Please sign in to comment.