-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add validatoR.yml gh action; remove pre-commit
- Loading branch information
1 parent
8f83f46
commit 690ddab
Showing
2 changed files
with
41 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: R Package Validation report | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
|
||
jobs: | ||
r-pkg-validation: | ||
name: Create report 📃 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rocker/verse:4.1.1 | ||
# Set Github token permissions | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
permissions: | ||
contents: write | ||
packages: write | ||
deployments: write | ||
steps: | ||
- name: Checkout repo 🛎 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build report 🏗 | ||
id: validation | ||
uses: insightsengineering/thevalidatoR@main | ||
# see parameters above for custom templates and other formats | ||
|
||
# Upload the validation report to the release | ||
- name: Upload report to release 🔼 | ||
if: success() | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: ${{ steps.validation.outputs.report_output_filename }} | ||
asset_name: ${{ steps.validation.outputs.report_output_filename }} | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
overwrite: false |
This file was deleted.
Oops, something went wrong.