Skip to content

Track Python package from requirements.txt, check if newer version exist in PyPI and provide update info.

License

Notifications You must be signed in to change notification settings

Verbalinsurection/track-pypi-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Track PyPI version javascript action

GitHub Release Version GitHub Release Date GitHub CodeFactor Quality Gate Status CircleCI Push pre-built action

Track Python package from requirements.txt, check if newer version exist in PyPI and provide update info. Can be useful to notify or to trigger an up to date docker image build.

Use

You can use built version on release-master branch

Inputs

compush

Optionnal Specify if commit and push need to be done. Default to true

reqfile

Optionnal Path to requirements.txt file. Default to /requirements.txt

backup

Optionnal Make a backup of requirements.txt if set to true. Default to false

Outputs

commit

If true, need to commit the new requirements.txt file

Example of use

on:
  push:
    branches:
      - 'main'
      - 'master'
    schedule:
      - cron: '0 6 * * *'

jobs:
  check_dep:
    runs-on: ubuntu-latest
    name: Check python requirements file and update
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Check requirements.txt
        uses: Verbalinsurection/track-pypi-version@1.1.0
        id: checkr
        with:
          compush: 'true'
          backup: 'false'
          reqfile: './requirements.txt'
      - name: Get if update needed output
        run: echo ${{ steps.checkr.outputs.commit }}

About

Track Python package from requirements.txt, check if newer version exist in PyPI and provide update info.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published