31 lines
658 B
YAML
31 lines
658 B
YAML
name: Generate readme.md from readme.txt
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
paths: [ "readme.txt" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Build
|
|
run: |
|
|
npm install
|
|
grunt
|
|
git config --global user.name '${{secrets.GIT_USERNAME}}'
|
|
git config --global user.email '${{secrets.GIT_EMAIL}}'
|
|
git commit -am "Regenerate readme.md"
|
|
git push
|