Skip to content

Commit

Permalink
Save session info to a file and archive upload it
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Nov 2, 2023
1 parent 7d6e766 commit 4c48938
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/check-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ jobs:
echo URL issue exists: $issue_exists
echo "issue_exists=$issue_exists" >> $GITHUB_OUTPUT
# We want to retrieve this file after this runs so we can see what spell check errors were detected
- name: Archive session info
uses: actions/upload-artifact@v3
# These arguments underneath `with` are generally action specific so we have to check the documentation: https://github.com/marketplace/actions/upload-a-build-artifact
with:
name: session_info.txt
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 == 'FALSE'}}
uses: JasonEtco/create-an-issue@v2
Expand Down
2 changes: 1 addition & 1 deletion scripts/find_issue.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ option_list <- list(
)

# Print out the result
message(unlist(sessionInfo()))
write(unlist(sessionInfo()), "session_info.txt")

# Read the arguments passed
opt_parser <- optparse::OptionParser(option_list = option_list)
Expand Down

0 comments on commit 4c48938

Please sign in to comment.