Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,51 +23,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: Check .tx/config
id: check_files
uses: andstor/file-existence-action@v1
with:
files: ".tx/config"
- name: Check .tx/deepin.conf
id: check_deepin
uses: andstor/file-existence-action@v1
with:
files: ".tx/deepin.conf"
- name: Check translations config
if: steps.check_files.outputs.files_exists == 'true' && steps.check_deepin.outputs.files_exists == 'false'
run: |
echo "need .tx/deepin.conf, it likes: "
echo "--------------------------------"
echo "[transifex]"
echo "branch = m20"
echo "--------------------------------"
echo "Because we don't know the translation branch corresponding to this branch."
echo "If you don't know the corresponding translation branch, don't set branch value, we will use the default value."
exit 1
- name: Init transifex file
if: steps.check_files.outputs.files_exists == 'true'
run: |
# TODO: not environment variable, action will override $HOME
mkdir -p /home/runner/work/_temp/_github_home/
cat << EOF > /home/runner/work/_temp/_github_home/.transifexrc
[https://www.transifex.com]
rest_hostname = https://rest.api.transifex.com
api_hostname = https://api.transifex.com
hostname = https://www.transifex.com
token = ${{ env.TRANSIFEX_API_TOKEN }}
EOF
- name: Check translations update
if: steps.check_files.outputs.files_exists == 'true'
uses: justforlxz/deepin-builder-docker/translate@master
- name: Check git files
if: steps.check_files.outputs.files_exists == 'true'
shell: bash
run: |
lines=$(git status -s | wc -l | awk '{print $1}')
git status -s
if [[ x"$lines" != x0 ]]; then
exit 2
fi
- name: get changelog version
id: get-version
run: |
Expand Down
Loading