Skip to content

Commit c142240

Browse files
authored
Merge pull request #53 from lool/limit-cron-to-main-branch
Cron updates
2 parents 6158292 + 349adf0 commit c142240

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/build-daily.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ permissions:
1212

1313
jobs:
1414
build-daily:
15+
# don't run cron from forks of the main repository or from other branches
16+
if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main'
1517
uses: ./.github/workflows/debos.yml
1618

1719
test-daily:
20+
# don't run cron from forks of the main repository or from other branches
21+
if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main'
1822
uses: ./.github/workflows/test.yml
1923
needs: build-daily
2024
secrets: inherit

.github/workflows/linux.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Linux kernel deb
33
on:
44
# run weekly on Monday at 8:30am
55
schedule:
6-
- cron: '30 8 * * 1'
6+
- cron: '30 6 * * 1'
77
# allow manual runs
88
workflow_dispatch:
99

@@ -26,6 +26,8 @@ concurrency:
2626

2727
jobs:
2828
build-linux-deb:
29+
# don't run cron from forks of the main repository or from other branches
30+
if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main'
2931
# for cross-builds
3032
runs-on: [self-hosted, qcom-u2404, amd64]
3133
# alternative for native builds, but overkill to do both

.github/workflows/stale-issues.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: Comment on Stale Issues
22
on:
33
schedule:
44
- cron: '30 1 * * *'
5-
5+
66
jobs:
77
stale:
8+
# don't run cron from forks of the main repository or from other branches
9+
if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main'
810
runs-on: ubuntu-latest
911
steps:
1012
- uses: actions/stale@v9
@@ -14,4 +16,4 @@ jobs:
1416
days-before-pr-stale: 30
1517
stale-pr-message: "This PR is stale. Add a nice message, can mention maintainers or maintainer team to draw attention"
1618
stale-issue-message: "This issue is stale. Add a nice message, can mention maintainers or maintainer team to draw attention"
17-
19+

.github/workflows/u-boot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Build U-Boot for RB1
22

33
on:
4+
# run weekly on Monday at 8:30am
5+
schedule:
6+
- cron: '30 6 * * 1'
47
# allow manual runs
58
workflow_dispatch:
69

@@ -23,6 +26,8 @@ concurrency:
2326

2427
jobs:
2528
build-u-boot-rb1:
29+
# don't run cron from forks of the main repository or from other branches
30+
if: github.repository == 'qualcomm-linux/qcom-deb-images' && github.ref == 'refs/heads/main'
2631
# for cross-builds
2732
runs-on: [self-hosted, qcom-u2404, amd64]
2833
# alternative for native builds, but overkill to do both

0 commit comments

Comments
 (0)