From 90c44e1e3c7c9f4b03c69ef8adb6f44776c0576f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Fri, 24 Apr 2026 09:46:10 +0200 Subject: [PATCH 1/2] Run nightly tests on 8.4/edge and 8.0/edge --- .../workflows/{schedule.yaml => nightly.yaml} | 6 +++--- .github/workflows/schedule_8_0_edge.yaml | 21 +++++++++++++++++++ .github/workflows/schedule_8_4_edge.yaml | 21 +++++++++++++++++++ 3 files changed, 45 insertions(+), 3 deletions(-) rename .github/workflows/{schedule.yaml => nightly.yaml} (98%) create mode 100644 .github/workflows/schedule_8_0_edge.yaml create mode 100644 .github/workflows/schedule_8_4_edge.yaml diff --git a/.github/workflows/schedule.yaml b/.github/workflows/nightly.yaml similarity index 98% rename from .github/workflows/schedule.yaml rename to .github/workflows/nightly.yaml index 4cf8d20a..93413aec 100644 --- a/.github/workflows/schedule.yaml +++ b/.github/workflows/nightly.yaml @@ -1,14 +1,14 @@ # Copyright 2025 Canonical Ltd. # See LICENSE file for licensing details. -name: Scheduled run +name: Nightly tests concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true on: - schedule: - - cron: '53 0 * * *' # Daily at 00:53 UTC + # Triggered on schedule by .github/workflows/scheduled_ci_*.yaml on default branch + workflow_dispatch: jobs: build: diff --git a/.github/workflows/schedule_8_0_edge.yaml b/.github/workflows/schedule_8_0_edge.yaml new file mode 100644 index 00000000..cae499ac --- /dev/null +++ b/.github/workflows/schedule_8_0_edge.yaml @@ -0,0 +1,21 @@ +# Copyright 2025 Canonical Ltd. +# See LICENSE file for licensing details. +name: Scheduled run (8.0/edge) + +on: + # GitHub will only trigger workflows `on: schedule` for workflow files in the default GitHub branch + schedule: + - cron: '53 23 * * *' # Daily at 23:53 UTC + +jobs: + trigger: + name: Trigger workflow on branch + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Trigger workflow + run: gh workflow --repo '${{ github.repository }}' run nightly.yaml --ref 8.0/edge + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + permissions: + actions: write # Needed to trigger workflow diff --git a/.github/workflows/schedule_8_4_edge.yaml b/.github/workflows/schedule_8_4_edge.yaml new file mode 100644 index 00000000..786797f6 --- /dev/null +++ b/.github/workflows/schedule_8_4_edge.yaml @@ -0,0 +1,21 @@ +# Copyright 2025 Canonical Ltd. +# See LICENSE file for licensing details. +name: Scheduled run (8.4/edge) + +on: + # GitHub will only trigger workflows `on: schedule` for workflow files in the default GitHub branch + schedule: + - cron: '53 0 * * *' # Daily at 00:53 UTC + +jobs: + trigger: + name: Trigger workflow on branch + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Trigger workflow + run: gh workflow --repo '${{ github.repository }}' run nightly.yaml --ref 8.4/edge + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + permissions: + actions: write # Needed to trigger workflow From abfd4c325dd774fe4c18a19ba40b479dd9e3eef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Fri, 24 Apr 2026 11:15:48 +0200 Subject: [PATCH 2/2] Fix permissions --- .github/workflows/nightly.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 93413aec..c1967f29 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -22,6 +22,9 @@ jobs: uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v48.1.2 with: path-to-charm-directory: ${{ matrix.path }} + permissions: + actions: read + contents: read integration-test: name: Integration tests