Skip to content

Commit

Permalink
Create monkeytype-icon.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ridemountainpig authored Oct 23, 2023
1 parent 6078ceb commit c7caee6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/monkeytype-icon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Download monkeytype icon

on:
push:
branches:
- monkeytype-icon
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Dependencies
run: npm install

- name: Run monkeytype icon script
run: node public/script/monkeytype-icon.js

- name: Configure git
run: |
git config --global user.name "ridemountainpig"
git config --global user.email "[email protected]"
- name: Commit and push changes
run: |
if git diff-index --quiet HEAD --; then
echo "No changes detected."
else
git add .
git commit -m "chore: update monkeytype icon"
fi
continue-on-error: true

- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: monkeytype-icon-workflow
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c7caee6

Please sign in to comment.