Skip to content
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
40 changes: 40 additions & 0 deletions .github/workflows/dependabot-async-upload-regen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Regenerate async-upload requirements.txt

on:
pull_request:
paths:
- "jobs/async-upload/poetry.lock"

permissions:
contents: write

jobs:
regenerate:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
defaults:
run:
working-directory: jobs/async-upload
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.11"

- name: Install Poetry
run: pipx install poetry

- name: Regenerate requirements.txt
run: make install

- name: Commit updated requirements.txt
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add requirements.txt
git diff --cached --quiet || git commit -m "chore: regenerate requirements.txt"
git push
Loading