Skip to content

Commit

Permalink
Added scheduled for master and release/2.4 (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi authored Nov 24, 2023
1 parent bf93d41 commit 722a716
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
push:
branches:
- 'master'
pull_request:
schedule:
- cron: '0 22 * * *' # run at 10 PM UTC

jobs:
builds:
uses: ./.github/workflows/shared_workflow.yml
secrets: inherit
with:
branch: master
12 changes: 12 additions & 0 deletions .github/workflows/nighlty-ci-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Nightly CI Release

on:
schedule:
- cron: '0 22 * * *' # run at 10 PM UTC

jobs:
builds:
uses: ./.github/workflows/shared_workflow.yml
secrets: inherit
with:
branch: release/2.4
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
on:
push:
branches:
- 'master'
pull_request:
schedule:
- cron: '0 22 * * *' # run at 10 PM UTC
workflow_call:
inputs:
branch:
type: string

name: CI

Expand All @@ -31,7 +29,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event_name == 'schedule' && 'release/2.4' || 'master' }}
ref: ${{ inputs.branch }}

- name: Setup PHP ${{ matrix.phpVersion }}
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -254,6 +252,7 @@ jobs:
uses: actions/checkout@v3
with:
path: integration_openproject
ref: ${{ inputs.branch }}

- name: Checkout activity app
uses: actions/checkout@v3
Expand Down

0 comments on commit 722a716

Please sign in to comment.