linkchecker/.github/workflows/branch-man.yml
Chris Mayo fbceca5dc9 Remove dependency on pyxdg
Read the environment variables and implement the same fallbacks.
Saves a hardly used dependency and is more explicit.
2022-08-23 19:26:15 +01:00

58 lines
1.7 KiB
YAML

name: Create a branch with updated man pages and application translations
on: workflow_dispatch
jobs:
run:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
repository: linkchecker/linkchecker
ref: master
# Needed for setuptools_scm to extract LinkChecker version from tag
# https://github.com/actions/checkout/issues/249
fetch-depth: 0
- name: Install Ubuntu packages
run: sudo apt install gettext git
- name: Setup Python
uses: actions/setup-python@v2
- name: Install Python packages
run: >
pip3 install dnspython beautifulsoup4 requests \
sphinx sphinx_epytext sphinx_rtd_theme sphinx-sitemap \
sphinx-intl setuptools_scm
- name: Prepare git environment
run: |
git config user.email "linkchecker@linkchecker.github.io"
git config user.name "LinkChecker"
git checkout -b man-updates
git remote add local ${{ github.server_url }}/${{ github.repository }}
- name: Create application version number
run: >
python3 setup.py build
- name: Build man pages
run: |
make -C doc locale
git commit -a -m "Update doc translation catalogs"
make -C doc man
git commit -a -m "Update man pages"
- name: Build application translations catalogs
run: |
rm -f po/linkchecker.pot
make -C po
git commit -a -m "Update application translation catalogs"
- name: Push changes
run: >
git push --set-upstream local man-updates