Backup Weekly #121
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Backup Weekly | |
on: | |
schedule: | |
- cron: '30 11 * * 6' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Date 📅 | |
id: slug | |
run: echo "date=$(date +'%Y/%m/%d')" >> $GITHUB_OUTPUT | |
- uses: actions/checkout@v2 | |
- name: Create Branch for Backup ⬆️ | |
run: | | |
git checkout -b baks/${{ steps.slug.outputs.date }} | |
git push origin baks/${{ steps.slug.outputs.date }} |