Skip to content

Fix typo

Fix typo #25

Workflow file for this run

name: Rebuild Readme
on:
push:
branches:
- dev
schedule:
- cron: '0 12 * * *' # every day
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup node
uses: actions/setup-node@v1
with:
node-version: '13.x'
- name: cache
id: cache-node-modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies (if needed)
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm install
- name: Generate README file
run: node index.js
# env:
# OPEN_WEATHER_MAP_KEY: ${{secrets.OPEN_WEATHER_MAP_KEY}}
- name: Push new readme.md
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: master # The branch name where you want to push the assets
FOLDER: dist # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "Automatic Readme Update" # The commit message
# - name: Push new README.md
# run: |
# git add readme.md
# git config user.name autocommit
# git config user.email autocommit@lxch.io
# git commit -m 'build from dev'
# git push HEAD:master HEAD:master --force