Skip to content

Commit

Permalink
Use a simpler way to check for project existence!
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Dec 17, 2024
1 parent 4c86fad commit 0240487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/generate-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
"copr_ownername": "@fedora-llvm-team",
"copr_project_tpl": "llvm-snapshots-pgo-YYYYMMDD",
"copr_monitor_tpl": "https://copr.fedorainfracloud.org/coprs/g/fedora-llvm-team/llvm-snapshots-pgo-YYYYMMDD/monitor/",
"chroot_pattern": "^(fedora-(rawhide|[0-9]+)|rhel-[8,9]-|centos-stream-10)",
"chroot_pattern": "^(fedora-41)",
"packages": "llvm"
}
EOF
Expand Down
4 changes: 1 addition & 3 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ function todays_issue_number() {
# Checks if a copr project exists
function copr_project_exists(){
local project=$1;
copr get-chroot $project/fedora-rawhide-x86_64 > /dev/null 2>&1
copr get $project > /dev/null 2>&1
}

# set -e
# TODO(kwk): Is there a better way to check project existence?
# TODO(kwk): Maybe: copr list $username | grep --regexp="^Name: \$project$"
# TODO(kwk): get rid of echoing "true" and "false"
function project_exists(){
local project=$1
Expand Down

0 comments on commit 0240487

Please sign in to comment.