diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 625e5449..cf0e53d6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -11,9 +11,6 @@ on: schedule: # 13:30 UTC = 00:00 Adelaide during daylight saving (ACDT, UTC+10:30) - cron: "30 13 * * *" - # 14:30 UTC = 00:00 Adelaide during standard time (ACST, UTC+9:30) - - cron: "30 14 * * *" - workflow_dispatch: permissions: contents: write @@ -29,33 +26,15 @@ jobs: run: shell: bash steps: - - name: Check Adelaide midnight - id: time_check - run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - echo "proceed=true" >> "$GITHUB_OUTPUT" - exit 0 - fi - export TZ=Australia/Adelaide - NOW="$(date +'%Y-%m-%d %H:%M %Z')" - if [ "$(date +%H%M)" = "0000" ]; then - echo "proceed=true" >> "$GITHUB_OUTPUT" - else - echo "proceed=false" >> "$GITHUB_OUTPUT" - echo "Skipping: not midnight Australia/Adelaide ($NOW)" - fi - uses: actions/checkout@v4 - if: steps.time_check.outputs.proceed == 'true' - name: Set build date id: build_date - if: steps.time_check.outputs.proceed == 'true' run: echo "date=$(TZ=Australia/Adelaide date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" - name: Build extension id: build - if: steps.time_check.outputs.proceed == 'true' uses: ./.github/actions/build-extension with: gh_release_update_check: "true" @@ -64,7 +43,6 @@ jobs: release_repo: ${{ github.repository }} - name: Ensure nightly release exists - if: steps.time_check.outputs.proceed == 'true' run: | TITLE="Nightly (${{ steps.build_date.outputs.date }})" if ! gh release view "${{ env.NIGHTLY_TAG }}" 2>/dev/null; then @@ -77,7 +55,6 @@ jobs: fi - name: Upload nightly assets - if: steps.time_check.outputs.proceed == 'true' run: | gh release upload "${{ env.NIGHTLY_TAG }}" \ --clobber \