From cba76f174899b77e1bd6cbe71cfc191047e3784a Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Wed, 26 Jan 2022 21:52:07 -0500 Subject: [PATCH] ci: update workflows [skip ci] --- .github/workflows/ci.presets.yml | 30 -------------------------- .github/workflows/ci.yml | 6 ++++++ .github/workflows/examples.presets.yml | 7 +++--- .github/workflows/test.presets.yml | 1 + 4 files changed, 10 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/ci.presets.yml diff --git a/.github/workflows/ci.presets.yml b/.github/workflows/ci.presets.yml deleted file mode 100644 index 9cc806aa..00000000 --- a/.github/workflows/ci.presets.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Continuous integration (presets) - -on: - push: - branches: [ presets ] - -jobs: - - test: - name: Test - if: "!contains(github.event.head_commit.message, '[skip test]')" - uses: lowlighter/metrics/.github/workflows/test.presets.yml@master - - publish-examples: - name: Publish examples - needs: [ test ] - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Setup NodeJS - uses: actions/setup-node@v2 - with: - node-version: 17 - - name: Setup metrics - run: npm ci - - name: Run tests - run: npm run test-presets -- publish diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68869eaa..4257695a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -150,6 +150,12 @@ jobs: TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }} WAKATIME_TOKEN: ${{ secrets.WAKATIME_TOKEN }} + # Publish examples (presets) + publish-examples-presets: + name: Publish examples (presets) + needs: [ docker-master ] + uses: lowlighter/metrics/.github/workflows/examples.presets.yml@master + # Build docker image from master and publish it to GitHub registry with release tag docker-release: name: Publish release to GitHub registry diff --git a/.github/workflows/examples.presets.yml b/.github/workflows/examples.presets.yml index 12a8593f..407ffb2b 100644 --- a/.github/workflows/examples.presets.yml +++ b/.github/workflows/examples.presets.yml @@ -1,10 +1,9 @@ name: Publish examples (presets) on: + schedule: + - cron: "0 16 1/2 * *" workflow_dispatch: - push: - branches: - - presets - + workflow_call: jobs: examples: runs-on: ubuntu-latest diff --git a/.github/workflows/test.presets.yml b/.github/workflows/test.presets.yml index 2d99f381..014bad3e 100644 --- a/.github/workflows/test.presets.yml +++ b/.github/workflows/test.presets.yml @@ -15,6 +15,7 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + ref: master - name: Setup NodeJS uses: actions/setup-node@v2 with: