From c0420d02890c936c239ad93de258a26b2a268f37 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 15 Jan 2022 00:15:43 -0500 Subject: [PATCH] ci: update examples workflow --- .github/scripts/build.mjs | 2 +- .github/scripts/files/examples.yml | 6 +++--- .github/workflows/examples.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/scripts/build.mjs b/.github/scripts/build.mjs index cfdf27d5..23c1af07 100644 --- a/.github/scripts/build.mjs +++ b/.github/scripts/build.mjs @@ -30,7 +30,7 @@ const {plugins, templates} = await metadata({log:false, diff:true}) const workflow = [] //Config and general documentation auto-generation -for (const step of []) { +for (const step of ["config", "documentation"]) { switch (step) { case "config": await update({source:paths.join(__action, "action.yml"), output:"action.yml"}) diff --git a/.github/scripts/files/examples.yml b/.github/scripts/files/examples.yml index a7efbb93..062abe61 100644 --- a/.github/scripts/files/examples.yml +++ b/.github/scripts/files/examples.yml @@ -1,7 +1,7 @@ name: Examples on: schedule: - - cron: "0 8 * * *" + - cron: "0 8 1/2 * *" workflow_dispatch: jobs: @@ -11,7 +11,7 @@ jobs: examples: runs-on: ubuntu-latest - if: false + if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository uses: actions/checkout@v2 @@ -38,7 +38,7 @@ jobs: examples-markdown: runs-on: ubuntu-latest - if: false + if: "github.repository == 'lowlighter/metrics'" container: ghcr.io/lowlighter/metrics:master needs: [examples] steps: diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index a71d108b..fbf3154a 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -1,7 +1,7 @@ name: Examples on: schedule: - - cron: "0 8 * * *" + - cron: "0 8 1/2 * *" workflow_dispatch: jobs: @@ -11,7 +11,7 @@ jobs: examples: runs-on: ubuntu-latest - if: false + if: "github.repository == 'lowlighter/metrics'" steps: - name: Checkout repository uses: actions/checkout@v2 @@ -929,7 +929,7 @@ jobs: examples-markdown: runs-on: ubuntu-latest - if: false + if: "github.repository == 'lowlighter/metrics'" container: ghcr.io/lowlighter/metrics:master needs: [examples] steps: