Skip to content

Commit

Permalink
Implemented workflow to fetch pypi updates
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g authored and rgeneaux committed Mar 14, 2022
1 parent c4dc3d7 commit f769e64
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 66 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/fetch_pypi_updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Fetch Package Updates on Pypi

on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 0'

jobs:
validate:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute validate.py
run: |
python ./src/pymodaq_plugin_manager/validate.py
- name: Commit files
run: |
git config --local user.name "rgeneaux"
git add .
if ! git diff-index --quiet HEAD; then
git commit -m "Auto-update package list"
fi
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
Loading

0 comments on commit f769e64

Please sign in to comment.