-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.21 KB
/
Validation_report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: R Package Validation report
on: # Run this action when a release is published
release:
types: [published]
workflow_dispatch:
jobs:
r-pkg-validation:
name: Create report 📃
runs-on: ubuntu-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 🏗
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: ./validation_report.pdf
asset_name: validation-report.pdf
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
overwrite: true
- name: Upload validation report
uses: actions/upload-artifact@v2
if: success()
with:
name: watervalues-report.pdf
path: ./validation_report.pdf
if-no-files-found: error