Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a PR on caracal with the latest release of stimela #789

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/python-dependants.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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:
pull_request:
branches: [ master ]

env:
POETRY_VERSION: 1.7.1

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- 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 ../caracal/

- uses: actions/checkout@v4
- name: Make changes to pull request
run: |
cd ../caracal/
poetry add stimela@latest --lock
git diff
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 deps
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
path: ../caracal/
branch: deps101
delete-branch: true
title: 'Stimela dependency update'
body: |
Update report
- Auto-generated by stimela-classic
labels: |
automated pr
assignees: athanaseus
reviewers: sphemakh
draft: false
Loading