v0.6.1 #10
Workflow file for this run
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
--- | |
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:latest | |
# 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@v2 | |
# 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: ./validation_report.pdf | |
asset_name: validation-report.pdf | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref }} | |
overwrite: true |