Skip to content

Commit

Permalink
Delete scripts and have them downloaded from ottr-reports
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Feb 29, 2024
1 parent c80d3eb commit 8df1bec
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 298 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ jobs:
run: |
echo "$GH_PAT"
echo "$GITHUB_REPOSITORY"
issue_exists=$(Rscript --vanilla scripts/find_issue.R --repo $GITHUB_REPOSITORY --git_pat $GH_PAT)
curl -o find_issue.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/find-issue.R
issue_exists=$(Rscript --vanilla find_issue.R --repo $GITHUB_REPOSITORY --git_pat $GH_PAT)
echo URL issue exists: $issue_exists
echo "issue_existence=$issue_exists" >> $GITHUB_OUTPUT
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/render-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ jobs:
rm -rf resources/chapt_screen_images
# Make new screenshots
chapt_urls=$(Rscript --vanilla scripts/make_screenshots.R \
curl -o make_screenshots.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/make_screenshots.R
chapt_urls=$(Rscript --vanilla make_screenshots.R \
--git_pat ${{ secrets.GH_PAT }} \
--repo $GITHUB_REPOSITORY \
--output_dir resources/chapt_screen_images)
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/transfer-rendered-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
path: bookdown
token: ${{ secrets.GH_PAT }}

- name: Run git repo check
id: git_repo_check
env:
Expand All @@ -58,7 +58,8 @@ jobs:
echo $QUIZ_REPO
# Run repo check script
results=$(Rscript --vanilla bookdown/scripts/git_repo_check.R --repo "$GITHUB_REPOSITORY" --git_pat "$GH_PAT")
curl -o git_repo_check.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/git_repo_check.R
results=$(Rscript --vanilla git_repo_check.R --repo "$GITHUB_REPOSITORY" --git_pat "$GH_PAT")
echo $QUIZ_REPO exists: $results
echo "git_results=$results" >> $GITHUB_OUTPUT
Expand All @@ -81,7 +82,7 @@ jobs:
# Copy over images folder (from bookdown to quizzes repo)
mkdir -p quizzes/resources/chapt_screen_images
cp bookdown/resources/chapt_screen_images/* quizzes/resources/chapt_screen_images
# Copy over _bookdown.yml (from bookdown to quizzes repo)
cp bookdown/_bookdown.yml quizzes/_bookdown.yml
Expand Down
55 changes: 0 additions & 55 deletions scripts/find_issue.R

This file was deleted.

97 changes: 0 additions & 97 deletions scripts/git_repo_check.R

This file was deleted.

74 changes: 0 additions & 74 deletions scripts/make_screenshots.R

This file was deleted.

67 changes: 0 additions & 67 deletions scripts/ottr-fy.R

This file was deleted.

0 comments on commit 8df1bec

Please sign in to comment.