From d62c77a410a1ca7cc6946d250fd65c0a0d213488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Thu, 6 Jun 2024 10:01:38 +0300 Subject: [PATCH 1/2] Weekly build w update to Slack --- .github/workflows/devmode-test-build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/devmode-test-build.yml b/.github/workflows/devmode-test-build.yml index 5983e8a..57e3507 100644 --- a/.github/workflows/devmode-test-build.yml +++ b/.github/workflows/devmode-test-build.yml @@ -5,6 +5,10 @@ on: branches: [ "master" ] pull_request: branches: [ "master" ] + workflow_dispatch: + schedule: + # Once week 03:26 on Saturday + - cron: '26 3 * * Sat' # This allows a subsequently queued workflow run to interrupt previous runs concurrency: @@ -12,14 +16,12 @@ concurrency: cancel-in-progress: true jobs: - build: - runs-on: [ "self-hosted", "client" ] env: SCRIPTS_INTERNAL_DIR: scripts-internal EDGE_CONFIGS_DIR: scripts-internal/edge/edge-config/build-mbed-edge-devmode-test - + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} steps: - uses: actions/checkout@v4 name: checkout repo @@ -35,3 +37,9 @@ jobs: uses: ./.github/actions/build-mbed-edge with: configfiles: ${{ env.EDGE_CONFIGS_DIR }} + - name: Post status to Slack testing_builds + if: always() + uses: act10ns/slack@v2 + with: + status: ${{ job.status }} + channel: '#testing_builds' From 19db62c25327f7056000138bfdaba7cb43644b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Thu, 6 Jun 2024 10:14:52 +0300 Subject: [PATCH 2/2] Change build criteria for push - ignore .md -files Build not only on master pushes, but all pushes but do ignore documentation only changes. --- .github/workflows/devmode-test-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/devmode-test-build.yml b/.github/workflows/devmode-test-build.yml index 57e3507..ea544f4 100644 --- a/.github/workflows/devmode-test-build.yml +++ b/.github/workflows/devmode-test-build.yml @@ -2,7 +2,8 @@ name: production build on: push: - branches: [ "master" ] + paths-ignore: + - '**/*.md' pull_request: branches: [ "master" ] workflow_dispatch: