diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index eb4ec2362..933d9686f 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -50,7 +50,7 @@ jobs: git_user_signingkey: true git_commit_gpgsign: true - - name: Commit the changes to wiki + - name: Commit and push the changes to wiki shell: sh working-directory: wiki run: | @@ -60,17 +60,11 @@ jobs: if ! git diff --cached --quiet; then git commit -m "Automatic translations update" + + git push fi - - name: Push changes to wiki - uses: ad-m/github-push-action@v0.8.0 - with: - github_token: ${{ secrets.ARCHIBOT_GITHUB_TOKEN }} - branch: master - directory: wiki - repository: ${{ github.repository }}.wiki - - - name: Commit the changes to ASF + - name: Commit and push the changes to ASF shell: sh run: | set -eu @@ -79,10 +73,6 @@ jobs: if ! git diff --cached --quiet; then git commit -m "Automatic translations update" - fi - - name: Push changes to ASF - uses: ad-m/github-push-action@v0.8.0 - with: - github_token: ${{ secrets.ARCHIBOT_GITHUB_TOKEN }} - branch: ${{ github.ref }} + git push + fi