Skip to content

python-dependency-updater #38

python-dependency-updater

python-dependency-updater #38

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.8'
- 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://github.com --repo="$GITHUB_REPOSITORY" --user-token=${{ secrets.PYUP_GITHUB_ACCESS_TOKEN }} --branch "$default_branch" --initial