Skip to content

health-dashboard

health-dashboard #1045

name: health-dashboard
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Generate Dashboard
id: dashboard
uses: GH-ACE/issue-dashboard@v1
with:
config: ./dashboard-config/health-dashboard-config.yml
configType: file
token: "${{ github.token }}"
- name: Commit files
id: commit
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull
git add --all
if [-z "$(git status --porcelain)"]; then
echo "::set-output name=push::false"
else
git commit -m "Add changes" -a
echo "::set-output name=push::true"
fi
shell: bash
- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"