mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
2750ed6bd9
Reorganize preview workflows so that previews can be made for PRs from outside contributors.
24 lines
568 B
YAML
24 lines
568 B
YAML
name: fly.io Cleanup
|
|
on:
|
|
schedule:
|
|
# Once a day, clean up jobs marked as expired
|
|
- cron: '50 12 * * *'
|
|
|
|
# Allows running this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
jobs:
|
|
clean:
|
|
name: Clean stale deployed apps
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'gristlabs'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
|
with:
|
|
version: 0.2.72
|
|
- run: node buildtools/fly-deploy.js clean
|