Skip to content

Commit

Permalink
Fix helper (again) (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxushka authored Oct 10, 2023
1 parent 37f7b14 commit dec5e80
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/update-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
CROWDIN_API: ${{ secrets.CROWDIN_API }}
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_HELPER_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand All @@ -34,21 +36,13 @@ jobs:
else
echo "::set-output name=has_changes::true"
fi
- name: Create commit
uses: stefanzweifel/git-auto-commit-action@v4
- name: Remove old branch
if: steps.git-check.outputs.has_changes == 'true'
with:
commit_message: Update translations
branch: translations-branch
commit_options: '--no-verify'
status_options: '--untracked-files=no'
add_options: '-u'
push_options: '--force'
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
disable_globbing: true
create_branch: true
id: remove-branch
run: |
git remote set-url origin https://github.com/ChameleonHelper/ChameleonUltraGUI.git
git push origin :translations-branch || true
git remote set-url origin https://github.com/GameTec-live/ChameleonUltraGUI.git
- name: Create PR
if: steps.git-check.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v4
Expand All @@ -58,5 +52,6 @@ jobs:
branch: translations-branch
push-to-fork: ChameleonHelper/ChameleonUltraGUI
body: "Update translations"
commit-message: "feat: Update translations"
title: "feat: Update translations"
delete-branch: true

0 comments on commit dec5e80

Please sign in to comment.