Update Icons #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Icons | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 1" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- run: npm i | |
- run: npm i simple-icons@latest | |
- run: npm start | |
- name: Add | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Aveek Saha" | |
git status | |
git add --all | |
git commit -m "chore: Update badges" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Invoke GH pages build | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Publish to gh-pages | |
token: ${{ secrets.PERSONAL_TOKEN }} |