diff --git a/.github/workflows/repository-backup.yml b/.github/workflows/repository-backup.yml new file mode 100644 index 0000000..9627cb5 --- /dev/null +++ b/.github/workflows/repository-backup.yml @@ -0,0 +1,18 @@ +--- +name: repository-backup +on: + workflow_dispatch: {} + schedule: + - cron: 0 17 * * * + +concurrency: + group: backup-${{ github.ref }} + cancel-in-progress: false + +jobs: + repository-backup: + uses: openrewrite/gh-automation/.github/workflows/repository-backup.yml@main + secrets: + bucket_mirror_target: ${{ secrets.S3_GITHUB_REPOSITORY_BACKUPS_BUCKET_NAME }} + bucket_access_key_id: ${{ secrets.S3_GITHUB_REPOSITORY_BACKUPS_ACCESS_KEY_ID }} + bucket_secret_access_key: ${{ secrets.S3_GITHUB_REPOSITORY_BACKUPS_SECRET_ACCESS_KEY }}