diff --git a/.github/workflows/cron-unstable-build.yaml b/.github/workflows/cron-unstable-build.yaml index ed43e90b4be..7e8f69666d9 100644 --- a/.github/workflows/cron-unstable-build.yaml +++ b/.github/workflows/cron-unstable-build.yaml @@ -13,7 +13,8 @@ on: # Run nightly build at this time, bit of trial and error but this seems good. schedule: - cron: "0 6 * * *" # master build - - cron: "0 12 * * *" # 2.1 build + - cron: "0 12 * * *" # 2.2 build + - cron: "0 18 * * *" # 2.1 build # We do not want a new unstable build to run whilst we are releasing the current unstable build. concurrency: unstable-build-release @@ -51,8 +52,14 @@ jobs: echo "cron_branch=master" >> $GITHUB_ENV shell: bash - - name: 2.1 run + - name: 2.2 run if: github.event_name == 'schedule' && github.event.schedule=='0 12 * * *' + run: | + echo "cron_branch=2.2" >> $GITHUB_ENV + shell: bash + + - name: 2.1 run + if: github.event_name == 'schedule' && github.event.schedule=='0 18 * * *' run: | echo "cron_branch=2.1" >> $GITHUB_ENV shell: bash diff --git a/.github/workflows/staging-release.yaml b/.github/workflows/staging-release.yaml index 44dc75be236..daed8eb07a4 100644 --- a/.github/workflows/staging-release.yaml +++ b/.github/workflows/staging-release.yaml @@ -435,7 +435,7 @@ jobs: shell: bash - name: Promote container images from staging to GHCR.io - if: ${{ startsWith(github.event.inputs.version, '2.0') || startsWith(github.event.inputs.version, '2.1') || ! startsWith(matrix.tag, 'latest') }} + if: ${{ startsWith(github.event.inputs.version, '2.') || startsWith(github.event.inputs.version, '3.') || ! startsWith(matrix.tag, 'latest') }} run: | docker run --rm \ quay.io/skopeo/stable:latest \