From fe0ef34241ca78a9c70db5f85ea385abef49ea49 Mon Sep 17 00:00:00 2001 From: Tyr Date: Tue, 5 Mar 2024 01:24:10 -0500 Subject: [PATCH] add repository dispatch action --- .github/workflows/hugo.yml | 10 +++++++++- content/posts/hello-hugo.md | 8 -------- content/subjects/test-extra.md | 5 ----- 3 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 content/posts/hello-hugo.md delete mode 100644 content/subjects/test-extra.md diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index f067986..7c7d758 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -1,4 +1,3 @@ -# Sample workflow for building and deploying a Hugo site to GitHub Pages name: Deploy Hugo site to Pages on: @@ -6,6 +5,9 @@ on: push: branches: ["master", "markdowns"] + repository_dispatch: + types: [content_update] + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -45,6 +47,12 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + ref: master + + - name: log status + run: | + pwd && ls -al + - name: Setup Pages id: pages uses: actions/configure-pages@v4 diff --git a/content/posts/hello-hugo.md b/content/posts/hello-hugo.md deleted file mode 100644 index 9fc3724..0000000 --- a/content/posts/hello-hugo.md +++ /dev/null @@ -1,8 +0,0 @@ -+++ -title = 'Hello Claire' -date = 2024-02-15T01:19:42-05:00 -draft = true -+++ - -## This is a hello page - diff --git a/content/subjects/test-extra.md b/content/subjects/test-extra.md deleted file mode 100644 index f56a46d..0000000 --- a/content/subjects/test-extra.md +++ /dev/null @@ -1,5 +0,0 @@ -# Test - -## this is test without header - -## and also in extra folder \ No newline at end of file