Salary dataset update yearly #1
This file contains hidden or 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: Salary dataset update yearly | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 1 *' # Every 1st Jan | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: install python packages | |
working-directory: ./salary | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: execute py script | |
working-directory: ./salary | |
run: python salary-yearly.py | |
env: | |
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }} |