Skip to content

Commit 0240487

Browse files
committed
Use a simpler way to check for project existence!
1 parent 4c86fad commit 0240487

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/actions/generate-matrix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ runs:
4949
"copr_ownername": "@fedora-llvm-team",
5050
"copr_project_tpl": "llvm-snapshots-pgo-YYYYMMDD",
5151
"copr_monitor_tpl": "https://copr.fedorainfracloud.org/coprs/g/fedora-llvm-team/llvm-snapshots-pgo-YYYYMMDD/monitor/",
52-
"chroot_pattern": "^(fedora-(rawhide|[0-9]+)|rhel-[8,9]-|centos-stream-10)",
52+
"chroot_pattern": "^(fedora-41)",
5353
"packages": "llvm"
5454
}
5555
EOF

scripts/functions.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ function todays_issue_number() {
3535
# Checks if a copr project exists
3636
function copr_project_exists(){
3737
local project=$1;
38-
copr get-chroot $project/fedora-rawhide-x86_64 > /dev/null 2>&1
38+
copr get $project > /dev/null 2>&1
3939
}
4040

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

0 commit comments

Comments
 (0)