Skip to content

Translations update from Hosted Weblate #2758

Translations update from Hosted Weblate

Translations update from Hosted Weblate #2758

name: Dependabot Auto-merge
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
name: Auto-merge Dependabot PRs
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Wait for checks to complete
uses: lewagon/wait-on-check-action@v1.5.0
with:
ref: ${{ github.event.pull_request.head.sha }}
check-regexp: '(Build Check|Test Suite|Security Scan|Docker Build|Quick Tests).*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
allowed-conclusions: success,skipped,neutral
- name: Enable auto-merge for patch updates
if: |
steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: |
echo "Auto-merging patch update: ${{ steps.metadata.outputs.dependency-names }}"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for minor updates
if: |
steps.metadata.outputs.update-type == 'version-update:semver-minor' &&
steps.metadata.outputs.dependency-type == 'direct:development'
run: |
echo "Auto-merging minor dev dependency update: ${{ steps.metadata.outputs.dependency-names }}"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on PR
if: |
steps.metadata.outputs.update-type == 'version-update:semver-major' ||
(steps.metadata.outputs.update-type == 'version-update:semver-minor' && steps.metadata.outputs.dependency-type != 'direct:development')
uses: actions/github-script@v8
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '⚠️ This PR contains a **${{ steps.metadata.outputs.update-type }}** update and requires manual review before merging.'
})