Skip to content

monthly-build

monthly-build #27

Workflow file for this run

name: monthly-build
on:
workflow_dispatch:
schedule:
- cron: "0 4 1 * *"
jobs:
monthly-build-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.17.1"
- run: |
go run main.go
- run: |
git config --global user.email "${{ secrets.EMAIL }}"
git config --global user.name "Faryne"
A=$(printf "%d" `git status | grep nothing | wc -l`)
if [ "${A}" == "0" ]; then
git add .
D=`date +"%Y-%m-%d"`
git commit -m "${D} build"
git push origin master
fi;