Skip to content

test-ignore Update base.txt #2230

test-ignore Update base.txt

test-ignore Update base.txt #2230

name: Update reproducible requirements
on:
pull_request:
branches: [develop, update_action_fix]
paths:
# run this GHA if the following files have changed
- requirements/base.txt
- requirements/reproducible-linux.txt
- requirements/reproducible-mac.txt
- requirements/reproducible-win.txt
workflow_call:
# Allow this workflow to be called from other workflows (e.g., build.yml)
jobs:
update-reqs:
permissions:
pull-requests: write
contents: write
# Skip for automated dependency update branches - build.yml handles those via workflow_call
if: >
github.repository_owner == 'aws' &&
(github.event_name == 'workflow_call' ||
(github.head_ref != 'update_app_templates_hash' &&
github.head_ref != 'update_sam_transform_version' &&
github.head_ref != 'update_lambda_builders_version'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Update all reproducible requirements
run: make update-reproducible-reqs-uv
- name: Push changes
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add requirements/reproducible-*.txt
git commit -m "Update reproducible requirements" || echo "nothing to commit"
git push