Skip to content

lauberto is scraping files 🐧 #5

lauberto is scraping files 🐧

lauberto is scraping files 🐧 #5

name: GitHub Actions Demo
run-name: ${{ github.actor }} is scraping files 🐧
on:
# schedule:
# - cron: '30 0 * * *'
# - cron: '55 * * * *'
workflow_dispatch: # Allows manual triggering
push:
branches:
- main
jobs:
run-script:
runs-on: [self-hosted, linux, x64]
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
API_BASE_URL: ${{ secretes.API_BASE_URL }}

Check failure on line 16 in .github/workflows/scraper-workflow.yml

View workflow run for this annotation

GitHub Actions / GitHub Actions Demo

Invalid workflow file

The workflow is not valid. .github/workflows/scraper-workflow.yml (Line: 16, Col: 21): Unrecognized named-value: 'secretes'. Located at position 1 within expression: secretes.API_BASE_URL .github/workflows/scraper-workflow.yml (Line: 17, Col: 20): Unrecognized named-value: 'secretes'. Located at position 1 within expression: secretes.API_DEV_URL
API_DEV_URL: ${{ secretes.API_DEV_URL }}
HOST: ${{ secretes.HOST }}
PORT: ${{ secretes.PORT }}
SENDER: ${{ secretes.SENDER }}
RECIPIENTS: ${{ secretes.RECIPIENTS }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4 # Ensures you have access to the repo files
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Python Script
run: python get_data.py # Replace with the actual script path