Wiki Backup #233
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wiki Backup | |
on: | |
#schedule: | |
# - cron: '30 19 * * *' | |
gollum: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current date | |
id: date | |
# Week number and year | |
run: echo "::set-output name=date::$(date +%Y-wk%U)" | |
- name: Backup wiki | |
uses: Mine02C4/auto_backup_wiki_action@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
target_branch: wiki-${{ steps.date.outputs.date }} |