Scheduled Release #10761
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: "Scheduled Release" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # NOTE: The longest build for an app is ~1h30m | |
| # Keep this to run every 2 or more hours to prevent gremlins from spawning | |
| - cron: "0 */3 * * *" | |
| env: | |
| TOKEN: ${{ secrets.TOKEN }} | |
| jobs: | |
| generate-build-matrix: | |
| name: Generate matrix for building images | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.fetch.outputs.changes }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ env.TOKEN }} | |
| - name: Install tools | |
| run: sudo apt-get install moreutils jo | |
| - name: Fetch new app versions | |
| id: fetch | |
| run: ./.github/scripts/fetch.sh | |
| images-build: | |
| uses: cdloh/containers/.github/workflows/action-image-build.yaml@main | |
| if: needs.generate-build-matrix.outputs.matrix != '[]' | |
| needs: | |
| - generate-build-matrix | |
| with: | |
| imagesToBuild: "${{ needs.generate-build-matrix.outputs.matrix }}" | |
| pushImages: "true" | |
| updateMetadata: "true" | |
| sendNotification: "true" | |
| secrets: inherit |