update submodules #304
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update submodules | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 12 * * *' | |
jobs: | |
submodules: | |
runs-on: ubuntu-latest | |
name: update submodules | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: update libreoffice | |
run: | | |
libre_version="$( | |
git ls-remote https://github.com/LibreTranslate/LibreTranslate v* \ | |
| cut -d/ -f3 \ | |
| sort -V \ | |
| grep -E "^v[0-9\.]+$" \ | |
| tail -1 | |
)" | |
cd LibreTranslate | |
git fetch --unshallow | |
git checkout $libre_version | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: submodules automated change | |
signoff: true | |
title: submodules update | |
body: Automated submodules update | |
branch: submodules-update |