Skip to content

Commit

Permalink
feat: add Zulip archive cron workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <[email protected]>
  • Loading branch information
kate-goldenring committed Oct 9, 2024
1 parent fc5a812 commit d3dba83
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
schedule:
# Run every hour
- cron: '0 * * * *'

jobs:
publish_archive_job:
runs-on: ubuntu-latest
name: A job to publish zulip-archive in GitHub pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run archive
id: archive
uses: zulip/zulip-archive@master
with:
zuliprc: ${{ secrets.ZULIPRC }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# To keep the git history from ballooning, will overwrite the Git
# history in the repository, but keep all the content.
delete_history: true
archive_branch: main

0 comments on commit d3dba83

Please sign in to comment.