This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
name: Scrape | ||
# name: Scrape | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: "*/7 * * * *" | ||
workflow_dispatch: | ||
# on: | ||
# push: | ||
# schedule: | ||
# - cron: "*/7 * * * *" | ||
# workflow_dispatch: | ||
|
||
env: | ||
ftppw: ${{ secrets.ftppw }} | ||
ftpuname: ${{ secrets.ftpuname }} | ||
|
||
jobs: | ||
scrape: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Create virtual environment | ||
run: python -m venv venv | ||
|
||
- name: Activate virtual environment | ||
run: source venv/bin/activate | ||
|
||
- name: Install requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run scraper | ||
run: python3 scrape_collin.py | ||
|
||
- name: Add and commit | ||
run: |- | ||
git add . | ||
git config user.name "Automated" | ||
git config user.email "[email protected]" | ||
git commit -m "Latest data" | ||
- name: Push | ||
run: git push | ||
# env: | ||
# ftppw: ${{ secrets.ftppw }} | ||
# ftpuname: ${{ secrets.ftpuname }} | ||
|
||
# jobs: | ||
# scrape: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: 3.9 | ||
|
||
# - name: Create virtual environment | ||
# run: python -m venv venv | ||
|
||
# - name: Activate virtual environment | ||
# run: source venv/bin/activate | ||
|
||
# - name: Install requirements | ||
# run: pip install -r requirements.txt | ||
|
||
# - name: Run scraper | ||
# run: python3 scrape_collin.py | ||
|
||
# - name: Add and commit | ||
# run: |- | ||
# git add . | ||
# git config user.name "Automated" | ||
# git config user.email "[email protected]" | ||
# git commit -m "Latest data" | ||
# - name: Push | ||
# run: git push | ||
|