UPDATE-AUTO #443
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: | |
# Chạy vào lúc 7h00 mỗi ngày theo múi giờ UTC+7 | |
- cron: '0 0 * * *' | |
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: Github stuff | |
run: | | |
echo "My github repo is called: ${{ github.repository }}" | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
author_name: lov3five | |
author_email: [email protected] | |
message: 'Auto update README.md' | |
add: 'autochat.svg' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |