Skip to content

Generate REAME.md #5862

Generate REAME.md

Generate REAME.md #5862

Workflow file for this run

name: Generate REAME.md
on:
push:
branches:
- master
schedule:
- cron: '0 */8 * * *'
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
go-version: [1.14.x]
platform: [ubuntu-latest]
steps:
- name: Configure git for private modules
env:
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: git config --global url."https://${GITHUB_ACTOR}:${TOKEN}@github.com".insteadOf "https://github.com"
- name: Checkout Repo
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
# - name: Series of Tests
# run: |
# go test ./...
# go test -race ./...
- name: Generate README
run: go run main.go
- name: Commit README
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add README.md
git commit -am "chore: update readme"
git push --all -f https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git