Bump pydantic from 2.12.5 to 2.13.1 in /docker/auth-utils #2997
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: Autolock PR Auto-merge | |
| on: pull_request_target | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| autolock-automerge: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor == 'content-bot' }} | |
| steps: | |
| - name: Validate branch name | |
| id: validate_branch | |
| env: | |
| BRANCH_NAME: ${{ github.head_ref }} | |
| run: | | |
| if [[ "$BRANCH_NAME" == autolock/* ]]; then | |
| echo "valid_branch=true" >> $GITHUB_OUTPUT | |
| echo "Branch name '$BRANCH_NAME' starts with 'autolock/' - proceeding with automerge" | |
| else | |
| echo "valid_branch=false" >> $GITHUB_OUTPUT | |
| echo "Branch name '$BRANCH_NAME' does not start with 'autolock/' - skipping automerge" | |
| fi | |
| - name: Check commit count | |
| if: steps.validate_branch.outputs.valid_branch == 'true' | |
| id: check_commits | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| COMMIT_COUNT=$(gh pr view "$PR_URL" --json commits --jq '.commits | length') | |
| echo "commit_count=$COMMIT_COUNT" >> $GITHUB_OUTPUT | |
| echo "PR has $COMMIT_COUNT commit(s)" | |
| if [[ "$COMMIT_COUNT" -ne 1 ]]; then | |
| echo "Skipping automerge - PR has $COMMIT_COUNT commits (expected exactly 1)" | |
| fi | |
| - name: Approve and enable auto-merge | |
| if: steps.validate_branch.outputs.valid_branch == 'true' && steps.check_commits.outputs.commit_count == '1' | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| echo "Approving PR and enabling auto-merge" | |
| gh pr review --approve "$PR_URL" | |
| gh pr merge --auto --squash "$PR_URL" | |
| - name: Skip automerge | |
| if: steps.validate_branch.outputs.valid_branch != 'true' | |
| run: | | |
| echo "Skipping automerge - branch name does not match required pattern 'autolock/*'" |