Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Feb 29, 2024
1 parent f8d555e commit a2ffbce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
path: session_info.txt

- name: If too many URL errors, then make an issue
if: ${{ steps.check-report.outputs.error_num >= 1 && steps.find-issue.outputs.issue_exists == ''}}
if: ${{ steps.check-report.outputs.error_num >= 1 && steps.find-issue.outputs.issue_exists == TRUE}}
uses: JasonEtco/create-an-issue@v2
with:
filename: .github/ISSUE_TEMPLATE/url-error.md
Expand Down
9 changes: 4 additions & 5 deletions scripts/find_issue.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ if (!is.character(repo)) {
repo <- as.character(repo)
}

# install.packages('githubr', repos='http://cran.us.r-project.org')
# devtools::install_github("fhdsl/githubr", auth_token = opt$git_pat, dependencies = TRUE)
install.packages('githubr', repos='http://cran.us.r-project.org')

# issue_titles <- githubr::get_issues(opt$repo, git_pat = opt$git_pat)$title
issue_titles <- githubr::get_issues(repo, git_pat = git_pat)$title

#issue_exists <- any(grep('Broken URLs found in the course!', issue_titles))
issue_exists <- any(grep('Broken URLs found in the course!', issue_titles))

# Print out the result
# write(as.character(issue_exists), stdout())
write(as.character(issue_exists), stdout())

0 comments on commit a2ffbce

Please sign in to comment.