Skip to content

main

main #1201

Workflow file for this run

name: main
on:
schedule:
- cron: '0 */6 * * *'
push:
branches:
- main
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests bs4
- name: Run script
run: |
cd parser
python run.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: >
πŸŽ‰ Updated date: ${{ env.DATE }}