Enable manual dispatch of script/mirror update in Actions

This commit is contained in:
Mislav Marohnić 2021-07-16 17:27:36 +02:00
parent fa6cb85db5
commit 57a4f9ce9f

View file

@ -1,6 +1,14 @@
name: Mirror
on: push
on:
push:
branches:
- master
workflow_dispatch:
inputs:
beforeRef:
description: Git commit reference to start comparing from
required: true
jobs:
test:
@ -12,7 +20,7 @@ jobs:
- name: Update download mirror
run: script/mirror update "${BEFORE_REF}.."
env:
BEFORE_REF: ${{ github.event.push.before }}
BEFORE_REF: ${{ github.event.before }}${{ github.event.inputs.beforeRef }}
AMAZON_S3_BUCKET: ruby-build-mirror
AWS_ACCESS_KEY_ID: AKIAJKAUQVHU6X4CODDQ
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_UPLOAD_SECRET }}