Workflow commits after update_locales cmd, no merge action

This commit is contained in:
Tara Sophia Roshan 2024-01-22 20:29:44 -06:00
parent 34cd7558d0
commit 24e130cd2f

View file

@ -18,15 +18,15 @@ jobs:
- name: Run update_locales command
run: ./bw-dev update_locales
- name: Create pull request
- name: Run update_locales and commit changes
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git fetch origin main:main
git switch main
git fetch origin l10n_main:l10n_main
git checkout l10n_main locale/*
git commit -m "[GitHub Action] Update locales"
gh pr create -B main -H l10n_main --title 'Merge l10n_main into main' --body 'Created by Github action using the update-locales.yml workflow'
./bw-dev update_locales
git add -A
git commit -a -m "[GitHub Action] Update locales"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}