sync_github_runner.yaml 831 B

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