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
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- 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 }}
|
2021-07-15 20:57:14 +02:00
|
|
|
AMAZON_S3_BUCKET: ruby-build-mirror
|
|
|
|
AWS_ACCESS_KEY_ID: AKIAJKAUQVHU6X4CODDQ
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_UPLOAD_SECRET }}
|