Skip to content

Commit

Permalink
lib: update github status message
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmadelaine committed Sep 24, 2023
1 parent adea1ab commit 52ec0be
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/github/mkGithubStatus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,16 @@ in {
build=$(echo "$input" | jq '.input.build' -r)
data=$(echo "$input" | jq '.input.data' -r)
evaluation=$(echo "$input" | jq '.input.evaluation' -r)
flake_locked=$(echo "$input" | jq '.input.flake_locked' -r)
job=$(echo "$input" | jq '.input.job' -r)
jobset=$(echo "$input" | jq '.input.jobset' -r)
project=$(echo "$input" | jq '.input.project' -r)
status=$(echo "$input" | jq '.input.status' -r)
token=$(echo "$input" | jq '.secrets.github_token' -r)
rev=$(echo "$flake_locked" | sed 's/github:.*\/.*\/\(.*\)/\1/')
target_url="$(echo "$data" | jq '.url' -r)/builds/$build"
context="Typhon: $job"
description="$project:$jobset:$evaluation:$job"
context="Typhon: ${system} / $job"
description="Nix-based continuous integration"
case $status in
"error")
state="failure"
Expand Down

0 comments on commit 52ec0be

Please sign in to comment.