This action runs Risu with provided parameters via optional build.sh and pushes the generated content to Git Hub Pages site.
GH_PAGES_BRANCH(optional): override the defaultgh-pagesdeployment branchSOSREPORT(optional): override the default.folder for SOSREPORT sourceCONFIGPATH(optional): Set path for finding the.risu.confconfiguration file
Create a .github/workflow/risu.yml like:
name: Run RISU analysis
on:
push:
branches:
- master
schedule:
- cron: "0 0 * * *"
jobs:
Risu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- uses: actions/cache@v2.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: risuorg/gh-action-Risu@0.0.1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SOSREPORT: test
CONFIGPATH: "./"
RUNFILE: "./build.sh"Adjust your build.sh for additional commands:
#!/bin/bash
mkdir -p output
touch output/risu.html
ln -s risu.html output/index.htmlCommit and let the GitHub Actions take care of it!