Skip to content

Instantly share code, notes, and snippets.

@gargakshit
Created July 24, 2020 10:47
Show Gist options
  • Save gargakshit/5827e63c4db1daf98906665578d4ef7f to your computer and use it in GitHub Desktop.
Save gargakshit/5827e63c4db1daf98906665578d4ef7f to your computer and use it in GitHub Desktop.
name: Generate README every 1 hour
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
stuff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Let the magic happen
uses: actions/setup-node@v1
with:
node-version: 14.6.0
- run: yarn
- run: node .
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SPOTIFY_REFRESH_TOKEN: ${{ secrets.SPOTIFY_REFRESH_TOKEN }}
- name: Add to git repo
run: |
git add .
git config --global user.name "Your Name"
git config --global user.email "Your E-Mail"
git commit -m "[Magic] Automated README update"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment