Skip to content

python-dependency-updater #34

python-dependency-updater

python-dependency-updater #34

name: python-dependency-updater
on:
# Run on the first day of the month
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
python-dependency-updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: '3.7'
- name: Run Pyup.io Dependency updater
run: |
pip install pyupio
pip install -r requirements.txt
default_branch=`git remote show origin | grep 'HEAD branch' | cut -d' ' -f5`
pyup --provider github --provider_url https://api.github.com --repo=$GITHUB_REPOSITORY --user-token=${{ secrets.PYUP_GITHUB_ACCESS_TOKEN }} --branch $default_branch --initial