Update actions and assets repository #89
Workflow file for this run
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 actions and assets repository | |
on: | |
schedule: | |
- cron: "0 */24 * * *" | |
push: | |
paths: | |
- '.gitmodules' | |
workflow_dispatch: | |
jobs: | |
Aktualizace: | |
name: Update repository actions and other tools | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.pat }} | |
ref: ${{ github.head_ref }} | |
- name: Update submodules | |
run: | | |
git -C doc/assets config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' | |
git submodule sync doc/assets | |
git submodule update --init --remote doc/assets | |
- name: Update submodules | |
run: | | |
git submodule update --remote doc/assets/ | |
- name: Zaktualizovat skripty | |
run: | | |
cd doc/assets/workflows/ && ./copy_workflow_to_repo.sh && cd ${GITHUB_WORKSPACE} | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Update workflow files | |
add_options: '-A' | |
commit_options: '-a' |