-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
144 changed files
with
7,780 additions
and
5,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ _\.new\.png$ | |
^pkgdown$ | ||
^Crashpad$ | ||
^tarballs$ | ||
^source$ | ||
^revdep | ||
^revdep$ | ||
^manifest\.json$ | ||
^\.rscignore$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Workflow derived from https://solutions.posit.co/operations/deploy-methods/ci-cd/github-actions/#overview-of-deploying-to-connect | ||
|
||
name: write-manifest | ||
on: | ||
pull_request: | ||
branches: [dev] | ||
types: [review_requested] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
write-manifest: | ||
if: ${{ !github.event.pull_request.draft }} | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Move to branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: 'renv' | ||
use-public-rspm: false | ||
- uses: r-lib/actions/setup-renv@v2 | ||
|
||
- name: Install required packages | ||
run: Rscript -e 'renv::install("rsconnect")' | ||
|
||
- name: Create manifest.json | ||
run: Rscript -e 'rsconnect::writeManifest()' | ||
|
||
- name: Commit results | ||
id: commit-results | ||
run: | | ||
git config --local user.name "Github Actions" | ||
git config --local user.email "actions@github.com" | ||
git add manifest.json || echo "WARN: manifest.json was not updated" | ||
git commit -m 'Re-build manifest file' || echo "No changes to commit" | ||
git push origin || echo "No changes to commit" | ||
echo "commit-sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" | ||
- name: Set status | ||
run: | | ||
gh api \ | ||
--method POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
/repos/pharmaR/riskassessment/statuses/${{ steps.commit-results.outputs.commit-sha }} \ | ||
-f "state=success" -f "description=manifest.json build succeeded!" -f "context=manifest-built" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ docs/ | |
*.sqlite | ||
!*demo.sqlite | ||
tarballs/ | ||
source/ | ||
report_preferences/ | ||
.Renviron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ tests | |
revdep | ||
dev | ||
man | ||
.Rprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.