Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
monitor

GitHub Action

monitor-package-version

v1.0.2

monitor-package-version

monitor

monitor-package-version

Monitor repository requirements and comment on commits in Github

Installation

Copy and paste the following snippet into your .yml file.

              

- name: monitor-package-version

uses: justinj-evans/[email protected]

Learn more about this action in justinj-evans/monitor-package-version

Choose a version

monitor-package-version

Docker License: MIT

Do you maintain a collaborative repository and want to keep a light-weight package list?

This GitHub Action assists in monitoring repository requirements by commenting when a python package has been added, upgraded, or downgraded in your repository. Poor package management can lead to increased dependency complexity, build times, and codebase bloat. Let 'monitor-package-version' add transparency to your package list.

Setup

  1. Ensure requirements.txt in repository
  2. Generate GitHub personal access token with repo access
  3. Assign secret to repository with the name 'REPO_ACCESS'

Usage

Workflow

.github/workflows/monitor-package-version.yml

name: Sample Format
on: push

jobs:
  monitor-package-version:
    runs-on: ubuntu-latest
    steps:
      - name: monitor-package-version
      - uses: justinj-evans/[email protected]
        with:
          upgrade: "True"
          downgrade: "True"
          new_package: "True"
          token: "${{ secrets.REPO_ACCESS }}"
          repository: "${{ github.repository }}"
          commit_sha: "${{ github.sha }}"
          existing_sha: "${{ github.event.before }}"

Inputs

Checkout action.yml for a full list of supported inputs.

Outputs

The Github Action compares current packages in your repository with those on a commit. If a difference is found, the Github Action generates a response and comments on the commit.

Contributors

Contributions of any kind welcome.

License

This project is licensed under the MIT License - see the LICENSE file for details.