Skip to content

Check for dependency upgrades #9

Check for dependency upgrades

Check for dependency upgrades #9

Workflow file for this run

name: Check for dependency upgrades
on:
schedule:
- cron: '30 5 * * 0'
jobs:
upgrade-dependencies:
name: Check for dependency upgrades
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Activate a virtual environment
run: python -m venv .venv && source .venv/bin/activate
- name: Install pip-upgrader
run: pip install pip-upgrader
- name: Update python dependencies
run: |
find ./docker -name requirements.txt -exec pip-upgrade {} --skip-package-installation -p all \;
- name: Update node dependencies
run: |
source .venv/bin/activate && \
pip install nodeenv && \
nodeenv -p && \
npm install -g npm-check-updates && \
find ./docker -name package.json -exec ncu --packageFile {} -u \;
- name: Push to main branch
run: |
git config --global user.name "xmedr"
git config --global user.email "xavier.medrano@datamade.us"
git add .
git commit -m "Update pypi and node dependencies"
git push origin ${{ github.ref_name }}