39 lines (37 loc) · 938 Bytes
/
version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
"on":
schedule:
# 18:00 on Friday
- cron: 0 18 * * 5
workflow_dispatch:
# https://github.com/softprops/action-gh-release/issues/236
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# https://github.com/orgs/community/discussions/25702
persist-credentials: false
- name: Install dependencies
run: |
sudo apt update
sudo apt install po4a
- name: Update version
id: version
run: |
scripts/git-commit.sh
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
- uses: Freed-Wu/translate-shell@0.0.27
with:
files: |
po4a/zh_CN/*.po
- name: Git commit
run: |
scripts/post-git-commit.sh
env:
VERSION: ${{ steps.version.outputs.VERSION }}
GH_TOKEN: ${{secrets.GH_TOKEN}}