Skip to content

Commit

Permalink
レポジトリバックアップ用のgithub actionsのyamlの作成
Browse files Browse the repository at this point in the history
レポジトリバックアップ用のgithub actions yamlを作成いたしました。
マージをお願い致します

- 補足
   - バックアップ先のパスは  `s3://hpplus-github-backup/{レポジトリ名}/` です。
   - 原則的にmerge以外に作業は不要です。(mergeされると自動で設定が行われます。)
   - 毎時日本時間0時としています。   
   - 実行時刻を変えたい場合は以下の箇所を修正をお願い致します。
  
```
  - cron: '0 15 * * *' # 毎日日本時間0時に実行
```
  • Loading branch information
ksk-y-ooyama authored Aug 5, 2024
1 parent b0bb2f8 commit 690b736
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/github-backup-repository.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Github Backup Repository

on:
# 設置時に起動時刻を設定してください
schedule:
- cron: '0 15 * * *' # 毎日日本時間0時に実行
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
call-reusable-workflow:
uses: pj8/.github/.github/workflows/github-backup-repository.yml@main
secrets:
AWS_3RD_ROLE_ARN: ${{ secrets.AWS_3RD_ROLE_ARN }}
AWS_REGION: ${{ secrets.AWS_REGION }}
BACKUP_BUCKET_NAME: ${{ secrets.BACKUP_BUCKET_NAME }}

0 comments on commit 690b736

Please sign in to comment.