-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.09 KB
/
update_actions.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
40
41
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'