Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run write-manifest on PRs to dev #773

Merged
merged 45 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
fd3033b
Run workflow on PRs to `dev`
jthompson-arcus May 3, 2024
7be8834
Re-build manifest file
jthompson-arcus May 3, 2024
893ee64
Run R-CMD action when manifest is updated
jthompson-arcus May 3, 2024
9979476
Merge branch 'jt-772-gha_for_manifest2' of arcus:pharmaR/riskassessme…
jthompson-arcus May 3, 2024
171d195
Re-build manifest file
jthompson-arcus May 3, 2024
fbd47f2
Remove run on path change
jthompson-arcus May 3, 2024
b1b9d25
Re-build manifest file
jthompson-arcus May 3, 2024
a31213d
Adjust workflow to pull request review
jthompson-arcus May 3, 2024
83733e3
Merge branch 'jt-772-gha_for_manifest2' of arcus:pharmaR/riskassessme…
jthompson-arcus May 3, 2024
d329294
Re-build manifest file
Jeff-Thompson12 May 3, 2024
ebf564e
Try adding error
jthompson-arcus May 3, 2024
42bf8be
Merge branch 'jt-772-gha_for_manifest2' of arcus:pharmaR/riskassessme…
jthompson-arcus May 3, 2024
752f5cf
Re-build manifest file
Jeff-Thompson12 May 3, 2024
6c9c5a2
Check if up to date
jthompson-arcus May 3, 2024
456f3c2
Merge branch 'jt-772-gha_for_manifest2' of arcus:pharmaR/riskassessme…
jthompson-arcus May 3, 2024
f9c42e1
Fix branch name
jthompson-arcus May 3, 2024
1c5b3e1
Try something new
jthompson-arcus May 3, 2024
d25e22d
Try, try again
jthompson-arcus May 3, 2024
26165c1
If at first you don't succeed, try try again
jthompson-arcus May 3, 2024
cb1192c
Re-build manifest file
actions-user May 3, 2024
684cffd
Add filter back in
jthompson-arcus May 3, 2024
8dd3085
Merge branch 'jt-772-gha_for_manifest2' of arcus:pharmaR/riskassessme…
jthompson-arcus May 3, 2024
97d40b6
Re-build manifest file
actions-user May 6, 2024
c3adbf6
Try setting status from GHA
jthompson-arcus May 6, 2024
0c1bdfb
Re-build manifest file
actions-user May 6, 2024
de89558
Set GH_TOKEN
jthompson-arcus May 6, 2024
e8e8b6b
Re-build manifest file
actions-user May 6, 2024
e2a2632
Do a little better at grabbing SHA
jthompson-arcus May 6, 2024
2d17df3
Re-build manifest file
actions-user May 6, 2024
299cd78
Update status context so it's not duplicate
jthompson-arcus May 6, 2024
629c715
Re-build manifest file
actions-user May 6, 2024
691bfe7
Re-build manifest file
actions-user May 6, 2024
abf3321
Add all file changes for testing
jthompson-arcus May 6, 2024
a6b1388
Re-build manifest file
actions-user May 6, 2024
d7c0551
Ignore `.Rprofile` when writing manifest
jthompson-arcus May 6, 2024
5d030d9
Re-build manifest file
actions-user May 6, 2024
29ab7f1
Add workflow dispatch option
jthompson-arcus May 7, 2024
46c5458
Change trigger from review to review requested
jthompson-arcus May 7, 2024
d50ac6f
Re-build manifest file
actions-user May 7, 2024
85e4e3a
Change to ready for review
jthompson-arcus May 7, 2024
fbc6708
Re-build manifest file
actions-user May 7, 2024
a58f811
Skip if in draft mode
jthompson-arcus May 7, 2024
3790fe4
Correct typo
jthompson-arcus May 7, 2024
f624f80
Trigger on review requested but filter for ready for review
jthompson-arcus May 7, 2024
8881159
Re-build manifest file
actions-user May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/write-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
name: write-manifest
on:
pull_request:
branches: [master]
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: Checkout repo
uses: actions/checkout@v3
- name: Move to branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

Expand All @@ -29,9 +34,20 @@ jobs:
run: Rscript -e 'rsconnect::writeManifest()'

- name: Commit results
id: commit-results
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
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"
1 change: 1 addition & 0 deletions .rscignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tests
revdep
dev
man
.Rprofile
23 changes: 10 additions & 13 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"Maintainer": "Brian Ripley <ripley@stats.ox.ac.uk>",
"Repository": "CRAN",
"Date/Publication": "2024-01-13 13:36:16 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-04-24 20:32:56 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-05-06 22:13:23 UTC; unix"
}
},
"Matrix": {
Expand Down Expand Up @@ -208,7 +208,7 @@
"Maintainer": "Martin Maechler <mmaechler+Matrix@gmail.com>",
"Repository": "CRAN",
"Date/Publication": "2024-01-11 17:50:15 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-04-24 20:33:20 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-05-06 22:13:34 UTC; unix"
}
},
"R.methodsS3": {
Expand Down Expand Up @@ -947,7 +947,7 @@
"RoxygenNote": "7.3.0",
"Author": "Sebastien Rochette [aut, cre] (<https://orcid.org/0000-0002-1565-9313>),\n Vincent Guyader [aut] (<https://orcid.org/0000-0003-0671-9270>),\n Arthur Bréant [aut] (<https://orcid.org/0000-0003-1668-0963>),\n Murielle Delmotte [aut] (<https://orcid.org/0000-0002-1339-2424>),\n ThinkR [cph]",
"Maintainer": "Sebastien Rochette <sebastien@thinkr.fr>",
"Built": "R 4.3.3; ; 2024-04-30 19:19:10 UTC; unix",
"Built": "R 4.3.3; ; 2024-05-03 15:41:17 UTC; unix",
"RemoteType": "github",
"RemoteUsername": "thinkr-open",
"RemoteRepo": "checkhelper",
Expand Down Expand Up @@ -1310,7 +1310,7 @@
"Imports": "callr,\ncranlike (>= 1.0.2),\ncurl,\ndesc (>= 1.1.0),\ndigest,\nparsedate,\nrappdirs,\nrematch2,\ntools,\nutils,\nwithr",
"Suggests": "covr,\npingr,\ntestthat,\nzip",
"Encoding": "UTF-8",
"Built": "R 4.3.3; ; 2024-04-30 19:19:18 UTC; unix",
"Built": "R 4.3.3; ; 2024-05-03 15:41:25 UTC; unix",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteUsername": "r-lib",
Expand Down Expand Up @@ -3436,7 +3436,7 @@
"Packaged": "2023-12-20 10:39:06 UTC; sw283",
"Repository": "CRAN",
"Date/Publication": "2023-12-21 00:30:02 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-04-24 20:38:02 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-05-06 22:15:46 UTC; unix"
}
},
"mime": {
Expand Down Expand Up @@ -3569,7 +3569,7 @@
"Maintainer": "R Core Team <R-core@R-project.org>",
"Repository": "CRAN",
"Date/Publication": "2023-11-27 15:26:12 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-04-24 20:36:05 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-05-06 22:14:51 UTC; unix"
}
},
"officer": {
Expand Down Expand Up @@ -4410,7 +4410,7 @@
"RoxygenNote": "7.2.3",
"Author": "Gábor Csárdi [cre, aut, cph],\n Hadley Wickham [aut],\n RConsortium [cph],\n RStudio [cph, fnd]",
"Maintainer": "Gábor Csárdi <csardi.gabor@gmail.com>",
"Built": "R 4.3.3; ; 2024-04-30 19:19:51 UTC; unix",
"Built": "R 4.3.3; ; 2024-05-03 15:41:58 UTC; unix",
"RemoteType": "github",
"RemoteUsername": "r-lib",
"RemoteRepo": "revdepcheck",
Expand Down Expand Up @@ -4528,7 +4528,7 @@
"Config/testthat/edition": "3",
"Author": "R Validation Hub [aut],\n Doug Kelkhoff [aut],\n Marly Gotti [aut],\n Eli Miller [cre, aut],\n Kevin K [aut],\n Yilong Zhang [aut],\n Eric Milliman [aut],\n Juliane Manitz [aut],\n Mark Padgham [ctb],\n PSI special interest group Application and Implementation of\n Methodologies in Statistics [cph]",
"Maintainer": "Eli Miller <eli.miller@atorusresearch.com>",
"Built": "R 4.3.3; ; 2024-04-30 19:19:56 UTC; unix",
"Built": "R 4.3.3; ; 2024-05-03 15:42:04 UTC; unix",
"RemoteType": "github",
"RemoteUsername": "pharmaR",
"RemoteRepo": "riskmetric",
Expand Down Expand Up @@ -5101,7 +5101,7 @@
"Maintainer": "Barret Schloerke <barret@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-08-26 13:50:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2023-12-04 11:55:11 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2023-08-28 11:40:29 UTC; unix"
}
},
"sortable": {
Expand Down Expand Up @@ -6163,17 +6163,14 @@
"checksum": "c0baef024db9ec1299aae4098e904e9c"
},
".github/workflows/write-manifest.yaml": {
"checksum": "944850f7465c7ab1a02b2029b19e2552"
"checksum": "64262504d53caa2823ff8987bca08a66"
},
".open": {
"checksum": "d41d8cd98f00b204e9800998ecf8427e"
},
".Rbuildignore": {
"checksum": "70824d07d35cb82e0d1e78f58783e73b"
},
".Rprofile": {
"checksum": "ca8ca0753ff1fa53bd8660d5a1f85b30"
},
"app.R": {
"checksum": "4ea07f590cf6a7980f5d997ad9cd55d2"
},
Expand Down