There was an error while loading. Please reload this page.
1 parent 9275b37 commit 9b3801aCopy full SHA for 9b3801a
1 file changed
.github/workflows/update-translation-stats.yml
@@ -11,6 +11,9 @@ jobs:
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v3
14
+ with:
15
+ ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
16
+ fetch-depth: 0
17
18
- name: Set up Python
19
uses: actions/setup-python@v4
@@ -45,9 +48,10 @@ jobs:
45
48
run: python scripts/transifex/update_readme.py
46
49
47
50
- name: Commit and push changes
51
+ if: ${{ github.event_name != 'pull_request' }}
52
run: |
53
git config --local user.email "github-actions@github.com"
54
git config --local user.name "GitHub Action"
55
git add reports/ README.md
56
git diff --quiet && git diff --staged --quiet || git commit -m "Update translation statistics"
- git push
57
+ git push origin ${{ github.ref_name }}
0 commit comments