Download then push #202
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: Download then push | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 12 * * 3' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: | | |
npm install | |
node down.js | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add ./output | |
git commit -a -m "Automatic commit" | |
- uses: ad-m/github-push-action@master |