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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
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"