mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Update dependencies
|
|
on:
|
|
schedule:
|
|
- cron: '0 3 * * 6' # Run every saturday at 3 am.
|
|
jobs:
|
|
update_dependencies:
|
|
name: Update dependencies
|
|
if: github.repository_owner == 'galaxyproject'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.7']
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Cache pip dir
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
|
|
- name: Update dependencies
|
|
run: |
|
|
python -m venv .venv
|
|
make update-dependencies
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
author: galaxybot <galaxybot@users.noreply.github.com>
|
|
token: ${{ secrets.GALAXYBOT_PAT }}
|
|
commit-message: Update Python dependencies
|
|
branch: dev_auto_update_dependencies
|
|
delete-branch: true
|
|
push-to-fork: galaxybot/galaxy
|
|
title: Update Python dependencies
|
|
body: Run `make update-dependencies`.
|
|
labels: area/dependencies
|