13 runs-on: ubuntu-latest
17 uses: actions/checkout@v4.1.4
21 token: ${{ secrets.ARCHIBOT_GITHUB_TOKEN }}
23 - name: Reset wiki to follow origin
25 working-directory: wiki
29 git fetch --depth=1 origin master
30 git reset --hard origin/master
32 - name: Download latest translations from Crowdin
33 uses: crowdin/github-action@v1.20.2
36 download_translations: true
37 skip_untranslated_strings: true
38 push_translations: false
39 crowdin_branch_name: main
40 config: '.github/crowdin.yml'
41 project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
42 token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
44 - name: Import GPG key for signing
45 uses: crazy-max/ghaction-import-gpg@v6.1.0
47 gpg_private_key: ${{ secrets.ARCHIBOT_GPG_PRIVATE_KEY }}
48 git_config_global: true
49 git_user_signingkey: true
50 git_commit_gpgsign: true
52 - name: Commit the changes to wiki
54 working-directory: wiki
60 if ! git diff --cached --quiet; then
61 git commit -m "Automatic translations update"
64 - name: Push changes to wiki
65 uses: ad-m/github-push-action@v0.8.0
67 github_token: ${{ secrets.ARCHIBOT_GITHUB_TOKEN }}
70 repository: ${{ github.repository }}.wiki
72 - name: Commit the changes to ASF
77 git add -A "ArchiSteamFarm/Localization" "ArchiSteamFarm.OfficialPlugins.ItemsMatcher/Localization" "ArchiSteamFarm.OfficialPlugins.MobileAuthenticator/Localization" "ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/Localization" "wiki"
79 if ! git diff --cached --quiet; then
80 git commit -m "Automatic translations update"
83 - name: Push changes to ASF
84 uses: ad-m/github-push-action@v0.8.0
86 github_token: ${{ secrets.ARCHIBOT_GITHUB_TOKEN }}
87 branch: ${{ github.ref }}