Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Actions: use branch sync workflow #514

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Codecov settings
# After modifying this file, you can validate it, see https://api.codecov.io/validate

codecov:
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
# define the colour bar limits here (red...green)
range: "75...100"

# diff type
status:
project:
default:
# fail if coverage below this:
target: '85%'
# fail if coverage drops by this much:
threshold: '2%'
patch:
default:
target: '85%'

# turn off comments to pull requests
comment: false
20 changes: 20 additions & 0 deletions .github/workflows/branch_sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync PR

on:
push:
branches:
- '*.*.x'
schedule:
- cron: '49 03 * * 1-5' # 03:49 UTC Mon-Fri
workflow_dispatch:
inputs:
head_branch:
description: Branch to merge into master
required: true

jobs:
sync:
uses: cylc/release-actions/.github/workflows/branch-sync.yml@v1
with:
head_branch: ${{ inputs.head_branch }}
secrets: inherit
Loading