Skip to content

Run 'poetry update' and create a PR #146

Run 'poetry update' and create a PR

Run 'poetry update' and create a PR #146

name: "Run 'poetry update' and create a PR"
on:
push:
branches:
- run-poetry-update-workflow
schedule:
- cron: '0 0 * * MON'
workflow_dispatch:
jobs:
task:
permissions:
contents: write
pull-requests: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Initialize Poetry & jq
uses: uwit-iam/action-setup-poetry-project@main
with:
credentials: "${{ secrets.MCI_GCLOUD_AUTH_JSON }}"
enable_private_docker: true
- run: |
sudo apt-get -y install jq
- run: poetry update --lock
id: poetry-update
- run: poetry run tox
name: Validate dependency updates
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.14.0
with:
add-paths: poetry.lock
commit-message: ${{ env.message }}
delete-branch: true
title: ${{ env.message }}
assignees: soufianerafik
reviewers: soufianerafik
labels: semver-guidance:patch
env:
message: '[bot] patch dependencies'