Skip to content

Cribbing scripts from the editor test repository to keep this one clean #1

Cribbing scripts from the editor test repository to keep this one clean

Cribbing scripts from the editor test repository to keep this one clean #1

name: Cleanup Deployments
# cleans up old deployments and only leaves the newest three from each PR.
# Does not (yet) remove deployments after an PR was merged or closed.
on:
schedule:
- cron: "0 5 * * 1"
jobs:
delete-old-deployments:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
ref: gh-pages
- name: Download cleanup script
run: wget https://raw.githubusercontent.com/opencast/opencast-admin-interface-test/main/.github/scripts/cleanup-deployments.sh
- name: Run cleanup script
run: |
bash cleanup-deployments.sh opencast/opencast-admin-interface
rm -f cleanup-deployments.sh*
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: gh-pages
commit_message: Cleanup and delete old deployments
commit_options: '--amend"

Check failure on line 33 in .github/workflows/cleanup-deployments.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cleanup-deployments.yml

Invalid workflow file

You have an error in your yaml syntax on line 33