Skip to content

Update Dataset

Update Dataset #62

Workflow file for this run

# Updating the dataset as it was said in https://www.imf.org/external/np/res/commod/
#Q: How often are the monthly figures updated?
#A: Monthly data are updated on the Wednesday of the first full week of each month, so that we have time to collect all the needed data for the previous month,
# and is posted on the website shortly afterwards.
name: Update Dataset
#Added manual trigger event
on:
schedule:
- cron: "0 0 * * 3"
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3 # Use @v3 for the latest version
- name: Set up Python
uses: actions/setup-python@v4 # Use @v4 for the latest version
with:
python-version: 3.11
architecture: x64
- run: pip install -r requirements.txt
- name: Install Make
run: sudo apt-get install make # Install Make on the runner, if needed
- name: Execute Makefile (all target)
working-directory: ./ # Set the working directory to the root of your repository
run: make all # Run the "all" target defined in your Makefile
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit --allow-empty -m "Auto-update of the data package" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}