From 0e15e58a889195c5096e38afcbbc9190740798b5 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Sun, 7 Jan 2024 08:26:34 +0100 Subject: [PATCH] try once more different format --- .github/workflows/docker-dev.yml | 8 ++++---- .github/workflows/docker.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index 587c41c..0730aa5 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -7,8 +7,8 @@ on: jobs: build-amd64: runs-on: ubuntu-latest - # If contains the keyword "[release]" in the commit message. - if: "contains(github.event.head_commit.message, '[release]')" + # If contains the keyword "#release" in the commit message. + if: ${{ !contains(github.event.head_commit.message, '#release') }} strategy: matrix: architecture: [amd64] @@ -34,8 +34,8 @@ jobs: run: docker buildx imagetools create -t kerberos/agent-dev:latest kerberos/agent-dev:arch-$(echo ${{matrix.architecture}} | tr / -)-$(echo $GITHUB_SHA | cut -c1-7) build-other: runs-on: ubuntu-latest - # If contains the keyword "[release]" in the commit message. - if: "contains(github.event.head_commit.message, '[release]')" + # If contains the keyword "#release" in the commit message. + if: ${{ !contains(github.event.head_commit.message, '#release') }} strategy: matrix: #architecture: [arm64, arm/v7, arm/v6] diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2578be1..0cd3d91 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,8 +11,8 @@ env: jobs: build-amd64: runs-on: ubuntu-latest - # If contains the keyword "[release]" in the commit message. - if: "contains(github.event.head_commit.message, '[release]')" + # If contains the keyword "#release" in the commit message. + if: ${{ !contains(github.event.head_commit.message, '#release') }} permissions: contents: write strategy: @@ -71,8 +71,8 @@ jobs: # run: tar -xf agent-${{matrix.architecture}}.tar && snapcraft build-other: runs-on: ubuntu-latest - # If contains the keyword "[release]" in the commit message. - if: "contains(github.event.head_commit.message, '[release]')" + # If contains the keyword "#release" in the commit message. + if: ${{ !contains(github.event.head_commit.message, '#release') }} permissions: contents: write needs: build-amd64