Skip to content

Backup Weekly

Backup Weekly #134

Workflow file for this run

# 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 }}