diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97fc064..2da991a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,6 @@ on: pull_request: {} # allow rebuilding without a push workflow_dispatch: {} - # pre-build sstate regularly - schedule: - - cron: '30 2 * * *' jobs: build: diff --git a/.github/workflows/schedule-builds.yml b/.github/workflows/schedule-builds.yml new file mode 100644 index 0000000..4410958 --- /dev/null +++ b/.github/workflows/schedule-builds.yml @@ -0,0 +1,28 @@ +name: Schedule Builds + +on: + # allow rebuilding manually + workflow_dispatch: + # pre-build sstate regularly + schedule: + - cron: '30 2 * * *' + +jobs: + build: + name: Schedule Builds + runs-on: ubuntu-latest + if: ${{ github.event_name == 'workflow_dispatch' || vars.SCHEDULE_BUILDS }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Trigger master build + run: gh workflow run build --ref master + + - name: Trigger scarthgap build + run: gh workflow run build --ref scarthgap + + - name: Trigger kirkstone build + run: gh workflow run build --ref kirkstone