-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
labler for prs, etc. Also reverts translation changes as those are managed by crowdin
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
translation changes: '**/*en.arb' | ||
documentation: '**/*.md' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: "Pull Request/Issues Triage" | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
labels: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Pull Request Labeler | ||
if: github.event.pull_request | ||
uses: actions/labeler@v4 | ||
remove-unnecesary-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v3 | ||
- name: Detect changed languages files | ||
uses: dorny/paths-filter@v2 | ||
id: files_changed | ||
with: | ||
filters: | | ||
langs: | ||
- '!chameleonultragui/lib/l10n/*en.arb' | ||
- 'chameleonultragui/lib/l10n/*.arb' | ||
- name: Remove unnecesary files | ||
id: removed | ||
if: steps.files_changed.outputs.langs == 'true' | ||
working-directory: chameleonultragui/lib/l10n | ||
run: | | ||
git fetch origin | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Actions" | ||
for file in $(ls *.arb); do | ||
if [[ "$file" != "app_en.arb" ]]; then | ||
git checkout origin/main -- $file | ||
fi | ||
done | ||
- name: Create commit | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Uncommitted translation files | ||
commit_options: '--no-verify' | ||
status_options: '--untracked-files=no' | ||
add_options: '-u' | ||
push_options: '--force' | ||
skip_dirty_check: false | ||
skip_fetch: true | ||
skip_checkout: true | ||
disable_globbing: true |