aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/sync_github_runner.yaml
blob: 7a8632ffeb3505fbcb899bbf36d0dd06e607dbe8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Upload the latest GitHub Actions Runner
on:
  schedule:
    - cron: "15 */12 * * *"  # Two times a day
  workflow_dispatch:
jobs:
  sync:
    name: Upload the latest GitHub Actions Runner
    runs-on: ubuntu-latest
    permissions: {}
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          sparse-checkout: |
            .github
            ydb/ci/
      - name: Set up S3cmd cli tool
        uses: s3-actions/s3cmd@v1.6.1
      - name: Prepare s3cmd
        uses: ./.github/actions/s3cmd
        with:
          s3_key_id: ${{ secrets.AWS_KEY_ID }}
          s3_key_secret: ${{ secrets.AWS_KEY_VALUE }}
      - name: sync
        run: bash ./ydb/ci/sync_github_runner.sh
        env:
          GH_TOKEN: ${{ github.token }}
          BUCKET_PATH: ${{ vars.RUNNER_MIRROR_S3_BUCKET_PATH }}