Skip to content

Commit ea7b777

Browse files
committed
ci: fix branch checkout
Signed-off-by: Saw-jan <[email protected]>
1 parent 2808ad6 commit ea7b777

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ on:
1515
- 'l10n/**'
1616
- 'img/**'
1717
- 'docker-compose*'
18-
schedule:
19-
- cron: '0 22 * * *' # run at 10 PM UTC
2018

2119
concurrency:
2220
group: ${{ github.workflow }}-${{ github.ref }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-FileCopyrightText: 2023-2025 Jankari Tech Pvt. Ltd.
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
name: Nightly CI (Master branch)
4+
5+
# workflow can be scheduled ONLY from DEFAULT branch
6+
# > This event will only trigger a workflow run if the workflow file is on the default branch.
7+
# See: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
8+
on:
9+
schedule:
10+
- cron: '0 22 * * *' # run at 10 PM UTC
11+
12+
jobs:
13+
builds:
14+
uses: ./.github/workflows/shared_workflow.yml
15+
secrets: inherit
16+
with:
17+
branch: master

.github/workflows/shared_workflow.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
branch:
88
required: true
99
type: string
10-
default: master
1110
nextcloud_versions:
1211
required: false
1312
type: string
@@ -26,6 +25,10 @@ jobs:
2625
steps:
2726
- name: Checkout
2827
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
28+
29+
- name: Checkout
30+
if: github.event_name == 'schedule'
31+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
2932
with:
3033
ref: ${{ inputs.branch }}
3134

@@ -76,6 +79,10 @@ jobs:
7679
steps:
7780
- name: Checkout
7881
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
82+
83+
- name: Checkout
84+
if: github.event_name == 'schedule'
85+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
7986
with:
8087
ref: ${{ inputs.branch }}
8188

@@ -144,6 +151,12 @@ jobs:
144151
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
145152
with:
146153
path: integration_openproject
154+
155+
- name: Checkout
156+
if: github.event_name == 'schedule'
157+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
158+
with:
159+
path: integration_openproject
147160
ref: ${{ inputs.branch }}
148161

149162
- name: Checkout server (for phpunit and psalm)

0 commit comments

Comments
 (0)