Skip to content

Commit

Permalink
Merge pull request #514 from MetRonnie/actions
Browse files Browse the repository at this point in the history
GH Actions: use branch sync workflow
  • Loading branch information
MetRonnie authored Oct 26, 2023
2 parents 9b23154 + b82d7fe commit d3ce1fd
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
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

0 comments on commit d3ce1fd

Please sign in to comment.