diff --git a/.github/workflows/build-daily.yml b/.github/workflows/build-daily.yml index 0b4d4771..adca71fb 100644 --- a/.github/workflows/build-daily.yml +++ b/.github/workflows/build-daily.yml @@ -12,10 +12,15 @@ permissions: jobs: build-daily: + # don't run cron from forks of the main repository or from other branches + if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main' uses: ./.github/workflows/debos.yml + test-daily: + # don't run cron from forks of the main repository or from other branches + if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main' uses: ./.github/workflows/test.yml - needs: build-nightly + needs: build-daily secrets: inherit with: url: ${{ needs.build-daily.outputs.artifacts_url }} diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 308a1205..2a2f68b6 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -3,7 +3,7 @@ name: Build Linux kernel deb on: # run weekly on Monday at 8:30am schedule: - - cron: '30 8 * * 1' + - cron: '30 6 * * 1' # allow manual runs workflow_dispatch: @@ -26,6 +26,8 @@ concurrency: jobs: build-linux-deb: + # don't run cron from forks of the main repository or from other branches + if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main' # for cross-builds runs-on: [self-hosted, qcom-u2404, amd64] # alternative for native builds, but overkill to do both diff --git a/.github/workflows/stale-issues.yaml b/.github/workflows/stale-issues.yaml index f0800dd0..bb7725df 100644 --- a/.github/workflows/stale-issues.yaml +++ b/.github/workflows/stale-issues.yaml @@ -2,9 +2,11 @@ name: Comment on Stale Issues on: schedule: - cron: '30 1 * * *' - + jobs: stale: + # don't run cron from forks of the main repository or from other branches + if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/stale@v9 @@ -14,4 +16,4 @@ jobs: days-before-pr-stale: 30 stale-pr-message: "This PR is stale. Add a nice message, can mention maintainers or maintainer team to draw attention" stale-issue-message: "This issue is stale. Add a nice message, can mention maintainers or maintainer team to draw attention" - \ No newline at end of file + diff --git a/.github/workflows/u-boot.yml b/.github/workflows/u-boot.yml index 9e4ad35c..a535661d 100644 --- a/.github/workflows/u-boot.yml +++ b/.github/workflows/u-boot.yml @@ -1,6 +1,9 @@ name: Build U-Boot for RB1 on: + # run weekly on Monday at 8:30am + schedule: + - cron: '30 6 * * 1' # allow manual runs workflow_dispatch: @@ -23,6 +26,8 @@ concurrency: jobs: build-u-boot-rb1: + # don't run cron from forks of the main repository or from other branches + if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main' # for cross-builds runs-on: [self-hosted, qcom-u2404, amd64] # alternative for native builds, but overkill to do both