rbenv-ruby-build/.github/workflows/mirror.yml
dependabot[bot] e2f2c35962
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 09:00:33 +00:00

30 lines
745 B
YAML

name: Mirror
on:
push:
branches:
- master
workflow_dispatch:
inputs:
beforeRef:
description: Git commit reference to start comparing from
required: true
permissions:
contents: read
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 100
- name: Update download mirror
run: script/mirror update "${BEFORE_REF}.."
env:
BEFORE_REF: ${{ github.event.before }}${{ github.event.inputs.beforeRef }}
AMAZON_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_UPLOAD_SECRET }}
AWS_REGION: ${{ vars.AWS_REGION }}