Skip to content

producthunt-daily-top #1211

producthunt-daily-top

producthunt-daily-top #1211

Workflow file for this run

name: producthunt-daily-top
on:
schedule:
- cron: "0 6 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
generate-feed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install
run: npm install
working-directory: .
- name: Create feed
run: node index.js
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "update feed content"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}