autocommit-robot #554
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: autocommit-robot | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
bots: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v1 | |
- name: "Set node" | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: "Install" | |
run: npm install | |
- name: "Run bash" | |
run: node index.js | |
- name: "Commit" | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: XC0703 | |
author_email: [email protected] | |
message: "feat: save robot" | |
add: "pictures/*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |