From 492c1342ea7a825727ec69bb078ec820f8f69ef2 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Wed, 31 May 2023 10:51:00 -0700 Subject: [PATCH] Fix release notes condition Removes an extra exclamation point in the condition for the release notes that was making the logic the opposite of what we need. --- .github/workflows/ci.yml | 68 ++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cf0d2da08..b7748c486e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ on: - main - release-* tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - "v[0-9]+.[0-9]+.[0-9]+" pull_request: branches: - main @@ -16,7 +16,7 @@ on: - reopened - synchronize schedule: - - cron: '0 4 * * *' # run every day at 04:00 UTC + - cron: "0 4 * * *" # run every day at 04:00 UTC defaults: run: @@ -27,7 +27,6 @@ concurrency: cancel-in-progress: true jobs: - checks: name: Checks and variables runs-on: ubuntu-22.04 @@ -84,7 +83,7 @@ jobs: release: runs-on: ubuntu-22.04 needs: [checks, unit-tests] - if: ${{ github.event_name == 'push' && ! github.ref != 'refs/heads/main' }} + if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }} steps: - name: Checkout Repository uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 @@ -92,8 +91,8 @@ jobs: - name: Create/Update Draft uses: lucacome/draft-release@b79be3ff634f771230b2b6ee9f47308c5793671a # v0.2.0 with: - minor-label: 'enhancement' - major-label: 'change' + minor-label: "enhancement" + major-label: "change" publish: ${{ startsWith(github.ref, 'refs/tags/') }} collapse-after: 50 variables: | @@ -163,10 +162,10 @@ jobs: strategy: matrix: include: - - image: debian - type: oss - - image: debian-plus - type: plus + - image: debian + type: oss + - image: debian-plus + type: plus steps: - name: Checkout Repository uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 @@ -181,7 +180,7 @@ jobs: uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4.0.0 with: file: build/Dockerfile - context: '.' + context: "." cache-from: type=gha,scope=${{ matrix.image }} target: goreleaser tags: ${{ matrix.type }}:${{ github.sha }} @@ -270,7 +269,7 @@ jobs: uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4.0.0 with: file: tests/docker/Dockerfile - context: '.' + context: "." cache-from: type=gha,scope=test-runner cache-to: type=gha,scope=test-runner,mode=max tags: test-runner:${{ github.sha }} @@ -308,13 +307,14 @@ jobs: name: Build Docker OSS needs: smoke-tests strategy: - fail-fast: false - matrix: - image: [debian, alpine] - platforms: ["linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"] - include: - - image: ubi - platforms: "linux/arm64, linux/amd64, linux/ppc64le, linux/s390x" + fail-fast: false + matrix: + image: [debian, alpine] + platforms: + ["linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"] + include: + - image: ubi + platforms: "linux/arm64, linux/amd64, linux/ppc64le, linux/s390x" uses: ./.github/workflows/build-oss.yml with: platforms: ${{ matrix.platforms }} @@ -325,15 +325,15 @@ jobs: name: Build Docker Plus needs: build-docker strategy: - fail-fast: false - matrix: - image: [debian-plus, alpine-plus] - platforms: ["linux/arm64, linux/amd64"] - target: [goreleaser, aws] - include: - - image: ubi-plus - platforms: "linux/arm64, linux/amd64, linux/s390x" - target: goreleaser + fail-fast: false + matrix: + image: [debian-plus, alpine-plus] + platforms: ["linux/arm64, linux/amd64"] + target: [goreleaser, aws] + include: + - image: ubi-plus + platforms: "linux/arm64, linux/amd64, linux/s390x" + target: goreleaser uses: ./.github/workflows/build-plus.yml with: platforms: ${{ matrix.platforms }} @@ -345,12 +345,12 @@ jobs: name: Build Docker NAP needs: build-docker-plus strategy: - fail-fast: false - matrix: - image: [debian-plus-nap, ubi-plus-nap] - platforms: ["linux/amd64"] - target: [goreleaser, aws] - nap_modules: [dos, waf, "waf,dos"] + fail-fast: false + matrix: + image: [debian-plus-nap, ubi-plus-nap] + platforms: ["linux/amd64"] + target: [goreleaser, aws] + nap_modules: [dos, waf, "waf,dos"] uses: ./.github/workflows/build-plus.yml with: platforms: ${{ matrix.platforms }}