json-file-cleardown #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: json-file-cleardown | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 19 * * *' # Every day at 20:00 BST | |
permissions: | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Remove json status files | |
run: | | |
rm -f status/* | |
- name: Commit empty json status folder | |
continue-on-error: true | |
run: | | |
git config user.name hmcts-platform-operations | |
git config user.email [email protected] | |
git add . | |
git commit -m "JSON Status files housekeeping" | |
git push |