Skip to content

auto fetch, build & publish #823

auto fetch, build & publish

auto fetch, build & publish #823

name: auto fetch, build & publish
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.15.0
- uses: pnpm/action-setup@v2
- run: pnpm fetchColours
- run: git config user.email "[email protected]"
- run: git config user.name "Nick Wylynko Bot"
- run: git add .
- run: git commit -m "Update Icons File"
# - run: npx [email protected] patch -y --no-push
- run: npx [email protected] patch -y
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# - uses: EndBug/add-and-commit@v4
# with:
# author_name: Nick Wylynko Bot
# author_email: [email protected]
# message: 'Updated badges json'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}