clean-nightly-images #62
This file contains hidden or 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: Nightly image cleaning build workflow | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" # run this a few hours after publishing new nightly images to avoid conflicts | |
| run-name: clean-nightly-images | |
| env: | |
| GIT_USER: ${{ secrets.GIT_USER }} | |
| GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} | |
| jobs: | |
| clean-nightlies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| - name: Clean old nightly releases in OpenShift OperatorHub | |
| run: hack/operatorhub/clean-nightlies.sh | |
| env: | |
| GIT_CONFIG_USER_NAME: "${{ github.actor }}" | |
| GIT_CONFIG_USER_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" |