Skip to content

R Package Validation report #46

R Package Validation report

R Package Validation report #46

---
name: R Package Validation report
on: # Run this action when a release is published
release:
types: [published]
jobs:
r-pkg-validation:
name: Create report πŸ“ƒ
runs-on: ubuntu-latest
container:
image: rocker/verse:4.2.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@v3
- name: Build report πŸ—
id: validation
uses: insightsengineering/thevalidatoR@v1
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
with:
report_output_prefix: validation_report
# 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