This commit is contained in:
Ashley Harrison
2025-05-16 10:08:21 +01:00
parent 79d5e5d51b
commit f3942d3508
+3 -3
View File
@@ -150,7 +150,7 @@ jobs:
# - the PR does not modify the en-US locale
# TODO make these paths inputs to the workflow when we move this to a shared repo
run: |
filesChanged=$(gh pr diff --name-only ${{ env.PR_URL }})
filesChanged="$(gh pr diff --name-only "${{ env.PR_URL }}")"
if [[ $(echo "$filesChanged" | grep -cv -e 'public/locales/[a-zA-Z\-]*/grafana.json' -e 'public/app/plugins/datasource/azuremonitor/locales/[a-zA-Z\-]*/grafana-azure-monitor-datasource.json') -ne 0 ]]; then
echo "Non-i18n changes detected, not approving"
@@ -163,8 +163,8 @@ jobs:
fi
echo "Approving and enabling automerge"
gh pr review "${PR_URL}" --approve
gh pr merge --auto --squash "${PR_URL}"
gh pr review "${{ env.PR_URL }}" --approve
gh pr merge --auto --squash "${{ env.PR_URL }}"
env:
GITHUB_TOKEN: ${{ steps.generate_approver_token.outputs.token }}
PR_URL: ${{ steps.crowdin-download.outputs.pull_request_url }}