Skip to content

🌱 Update target and GitHub Action to run and upload all demos daily #2020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
name: catalogd-demo
name: update-demos

on:
schedule:
- cron: '0 3 * * *' # Runs every day at 03:00 UTC
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
- main

paths:
- 'api/*'
- 'config/*'
- 'hack/demo/*'
- '.github/workflows/update-demos.yaml'
pull_request:
paths:
- 'api/*'
- 'config/*'
- 'hack/demo/*'
- '.github/workflows/update-demos.yaml'

jobs:
demo:
runs-on: ubuntu-latest
Expand All @@ -26,5 +35,5 @@ jobs:
PATH="$PATH" \
TERM="xterm-256color" \
SHELL="/bin/bash" \
make demo-update
make update-demos

10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,12 @@ deploy-docs: venv
mkdocs gh-deploy --force

# The demo script requires to install asciinema with: brew install asciinema to run on mac os envs.
.PHONY: demo-update #EXHELP build demo
demo-update:
./hack/demo/generate-asciidemo.sh -u -n catalogd-demo catalogd-demo-script.sh
# Please ensure that all demos are named with the demo name and the suffix -demo-script.sh
.PHONY: update-demos #EXHELP Update and upload the demos.
update-demos:
@for script in hack/demo/*-demo-script.sh; do \
nm=$$(basename $$script -script.sh); \
./hack/demo/generate-asciidemo.sh -u -n $$nm $$(basename $$script); \
done

include Makefile.venv