2021-07-15 20:57:14 +02:00
|
|
|
name: Mirror
|
|
|
|
|
2021-07-16 17:27:36 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
beforeRef:
|
|
|
|
description: Git commit reference to start comparing from
|
|
|
|
required: true
|
2021-07-15 20:57:14 +02:00
|
|
|
|
2022-09-10 20:56:34 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-07-15 20:57:14 +02:00
|
|
|
jobs:
|
2021-07-20 20:00:03 +02:00
|
|
|
mirror:
|
2021-07-15 20:57:14 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-11 11:00:33 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-07-15 20:57:14 +02:00
|
|
|
with:
|
2023-03-10 16:24:10 +01:00
|
|
|
fetch-depth: 100
|
2021-07-15 20:57:14 +02:00
|
|
|
- name: Update download mirror
|
|
|
|
run: script/mirror update "${BEFORE_REF}.."
|
|
|
|
env:
|
2021-07-16 17:27:36 +02:00
|
|
|
BEFORE_REF: ${{ github.event.before }}${{ github.event.inputs.beforeRef }}
|
2023-03-10 16:24:10 +01:00
|
|
|
AMAZON_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }}
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
|
2021-07-15 20:57:14 +02:00
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_UPLOAD_SECRET }}
|
2023-03-10 16:24:10 +01:00
|
|
|
AWS_REGION: ${{ vars.AWS_REGION }}
|