Run 'poetry update' and create a PR #146
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |