mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
ci: update default branch to "main" in workflows
This commit is contained in:
parent
8c298e97a5
commit
bfc0d81481
3 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
#! /usr/bin/python
|
||||
|
||||
"""
|
||||
Compare the current results to the last results gathered from the master branch to highlight
|
||||
Compare the current results to the last results gathered from the main branch to highlight
|
||||
if a PR is making the results better/worse
|
||||
"""
|
||||
|
||||
|
@ -10,7 +10,7 @@ import sys
|
|||
from os import environ
|
||||
|
||||
NEW = json.load(open("gnu-result.json"))
|
||||
OLD = json.load(open("master-gnu-result.json"))
|
||||
OLD = json.load(open("main-gnu-result.json"))
|
||||
|
||||
# Extract the specific results from the dicts
|
||||
last = OLD[list(OLD.keys())[0]]
|
||||
|
@ -24,7 +24,7 @@ skip_d = int(current["skip"]) - int(last["skip"])
|
|||
|
||||
# Get an annotation to highlight changes
|
||||
print(
|
||||
f"::warning ::Changes from master: PASS {pass_d:+d} / FAIL {fail_d:+d} / ERROR {error_d:+d} / SKIP {skip_d:+d} "
|
||||
f"::warning ::Changes from main: PASS {pass_d:+d} / FAIL {fail_d:+d} / ERROR {error_d:+d} / SKIP {skip_d:+d} "
|
||||
)
|
||||
|
||||
# If results are worse fail the job to draw attention
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue