-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b36bd24
commit 9c39925
Showing
3 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Metadata updater | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f doc/assets/workflows/requirements.txt ]; then pip install -r doc/assets/workflows/requirements.txt; fi | ||
- name: Update metadata | ||
env: | ||
gh_repo: ${{ github.event.repository.name }} | ||
gh_url: ${{ github.server_url }}/${{ github.repository }} | ||
gh_branch: ${{ github.head_ref || github.ref_name }} | ||
gh_description: ${{ github.event.repository.name }} | ||
gh_repository: ${{ github.repository }} | ||
gh_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python3 doc/assets/workflows/update_metadata.py | ||
python3 doc/assets/workflows/update_kitspace.py | ||
- uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: Update metadata files | ||
commit_options: '-a' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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' |
Submodule assets
updated
from b54095 to 2e5044