Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add bump-dependencies workflow (#9357)

Marcin Gębalac141d028711f
diff --git a/.github/workflows/bump-dependencies.yml b/.github/workflows/bump-dependencies.yml
new file mode 100644
index 0000000000..79b52f7392
--- /dev/null
+++ b/.github/workflows/bump-dependencies.yml
@@ -0,0 +1,36 @@
+name: Bump dependencies
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '0 8 * * 1' # At 08:00 on Monday.
+
+jobs:
+ bump-dependencies:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: '3.9'
+
+ - run: python -m pip install poetry pre-commit
+ - run: poetry lock
+ - run: poetry export --without-hashes --dev -f requirements.txt -o requirements_dev.txt -E python
+ - run: poetry export -f requirements.txt --without-hashes -o requirements.txt
+ - run: pre-commit autoupdate
+ - run: git status
+
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@18f7dc018cc2cd597073088f7c7591b9d1c02672
+ with:
+ branch: bump-dependencies
+ delete-branch: true
+ commit-message: Bump dependencies
+ title: 'Bump dependencies'
+ body: |
+ Weekly update of backend dependencies.
+ labels: |
+ :robot: bot
+ test deployment