-
Notifications
You must be signed in to change notification settings - Fork 16
69 lines (64 loc) · 1.92 KB
/
python-dependants.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This workflow will install Python dependencies and create a PR to caracal-pipeline after a successful version release
name: Python Dependants
# Only trigger, when the publish workflow succeeded
#on:
# workflow_run:
# workflows: ["Upload Python Package"]
# types:
# - completed
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
POETRY_VERSION: 1.7.1
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache Installations
id: cache-installs
uses: actions/cache@v3
with:
path: ~/.local
key: install-${{ env.INSTALL_CACHE_HASH }}-3
- name: Install Poetry
if: steps.cache-installs.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
- name: Test poetry
run: poetry --version
- name: Git clone caracal
run: git clone https://github.com/caracal-pipeline/caracal.git@master ../caracal/
- uses: actions/checkout@v4
- name: Make changes to pull request
run: |
cd ../caracal/
poetry add stimela@latest --lock
git add poetry.lock pyproject.toml
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update report
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: readthedocs
delete-branch: true
title: 'Stimela dependency update'
body: |
Update report
- Auto-generated by stimela-classic
labels: |
automated pr
assignees: athanaseus
reviewers: sphemakh
draft: false