mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 11:06:53 +08:00
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
914 B
YAML
35 lines
914 B
YAML
name: Backup
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '5 4 * * 0'
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
backup:
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Configure cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
${{ env.GITHUB_WORKSPACE }}
|
|
~/.cache/restic
|
|
key: ${{ runner.os }}
|
|
|
|
- name: Install the correct Python version
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Run backup action
|
|
uses: julia-actions/restic-action@main
|
|
env: # Options: https://restic.readthedocs.io/en/latest/040_backup.html#environment-variables
|
|
RESTIC_REPOSITORY: b2:${{ secrets.B2_BUCKET }}:${{ github.repository }}
|
|
RESTIC_PASSWORD: ${{ secrets.RESTIC_PASSWORD }}
|
|
B2_ACCOUNT_ID: ${{ secrets.B2_ACCOUNT_ID }}
|
|
B2_ACCOUNT_KEY: ${{ secrets.B2_ACCOUNT_KEY }}
|