Bump vue from 3.5.41 to 3.5.42 #14
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: prek Autoupdate auto-merge | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: prek-autoupdate-auto-merge-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify-prek-update: | |
| if: >- | |
| github.event.repository.fork == false && | |
| github.actor == 'prek-autoupdate-bot' && | |
| github.event.pull_request.user.login == 'prek-autoupdate-bot' && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.head.ref == 'chore/prek-updates' && | |
| github.event.pull_request.base.ref == github.event.repository.default_branch | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - name: Verify that only a native prek config changed | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| REPOSITORY: ${{ github.repository }} | |
| run: | | |
| changed_files="$(gh api --paginate \ | |
| "repos/${REPOSITORY}/pulls/${PR_NUMBER}/files?per_page=100" \ | |
| --jq '.[].filename')" | |
| case "${changed_files}" in | |
| prek.toml | .pre-commit-config.yaml) ;; | |
| *) | |
| echo "Refusing auto-merge; changed files were:" | |
| echo "${changed_files}" | |
| exit 1 | |
| ;; | |
| esac | |
| enable-auto-merge: | |
| needs: verify-prek-update | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Enable auto-merge | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: gh pr merge --auto --squash --match-head-commit "${HEAD_SHA}" "${PR_URL}" | |
| disable-auto-merge: | |
| if: >- | |
| always() && | |
| needs.verify-prek-update.result != 'success' && | |
| github.event.repository.fork == false && | |
| github.event.pull_request.user.login == 'prek-autoupdate-bot' && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.head.ref == 'chore/prek-updates' && | |
| github.event.pull_request.base.ref == github.event.repository.default_branch | |
| needs: verify-prek-update | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Disable an existing auto-merge request | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: | | |
| set -euo pipefail | |
| auto_merge_enabled="$(gh pr view "${PR_URL}" --json autoMergeRequest --jq '.autoMergeRequest != null')" | |
| if [[ "${auto_merge_enabled}" == true ]]; then | |
| gh pr merge --disable-auto "${PR_URL}" | |
| else | |
| echo "Auto-merge is not enabled." | |
| fi |