UPDATE-AUTO #42
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: UPDATE-AUTO | |
on: | |
schedule: | |
- cron: '*/15 * * * *' # Chạy vào lúc theo múi giờ UTC+7 | |
workflow_dispatch: | |
jobs: | |
readmebot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm install | |
- name: Generate new SVG | |
env: | |
WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }} | |
run: node generate-svg.js | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
author_name: Luong Tran | |
author_email: [email protected] | |
message: 'Auto update README.md' | |
add: '*.svg' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |