datatracker/.github/workflows/sandbox-refresh.yml
dependabot[bot] 9b8969ce0b
chore(deps): bump actions/checkout from 3 to 4 (#6275)
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 15:30:19 -05:00

36 lines
726 B
YAML

name: Sandbox Refresh
on:
# Run every night
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
main:
name: Refresh DBs
runs-on: [self-hosted, dev-server]
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Refresh DBs
env:
DEBIAN_FRONTEND: noninteractive
run: |
echo "Install Deploy to Container CLI dependencies..."
cd dev/deploy-to-container
npm ci
cd ../..
echo "Start Refresh..."
node ./dev/deploy-to-container/refresh.js
- name: Cleanup old docker resources
env:
DEBIAN_FRONTEND: noninteractive
run: |
docker image prune -a -f