Skip to content

update-companies

update-companies #580

Workflow file for this run

name: update-companies
on:
schedule:
# ν•˜λ£¨μ— ν•œ 번, 04:00 UTC => 13:00 (GMT+9)에 μ—…λ°μ΄νŠΈ
- cron: '0 4 * * *'
push:
branches:
- main
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies (`aiohttp`)
run: |
python -m pip install --upgrade pip
pip install aiohttp
- name: Run script
run: |
python3 ./src/update-json.py ${{ secrets.GITHUB_TOKEN }}
python3 ./src/update-markdown.py
- name: Set date in environment variable
run: echo "DATE=$(date +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
- name: Commit & Push changes
uses: Andro999b/push@patch-1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
message: >
πŸŽ‰ 기업별 GitHub 데이터 μ—…λ°μ΄νŠΈ μ™„λ£Œ (${{ env.DATE }})