diff --git a/.github/workflows/release-hn-clone.yml b/.github/workflows/release-hn-clone.yml index 3d65af9..f25e942 100644 --- a/.github/workflows/release-hn-clone.yml +++ b/.github/workflows/release-hn-clone.yml @@ -1,13 +1,16 @@ name: Build and Deploy htmgo hackernews clone on: + workflow_run: + workflows: [ "Update HTMGO Framework Dependency" ] # The name of the first workflow + types: + - completed workflow_dispatch: # Trigger on manual workflow_dispatch push: branches: - master # Trigger on pushes to master paths: - 'examples/hackernews/**' # Trigger only if files in this directory change - - "framework/**" - "framework-ui/**" - "cli/**" diff --git a/framework/assets/js/htmgo.ts b/framework/assets/js/htmgo.ts index 29cb709..322501e 100644 --- a/framework/assets/js/htmgo.ts +++ b/framework/assets/js/htmgo.ts @@ -18,7 +18,7 @@ function watchUrl(callback: (oldUrl: string, newUrl: string) => void) { callback(lastUrl, window.location.href); lastUrl = window.location.href; } - }, 100); + }, 101); } watchUrl((_, newUrl) => {