From 3edd07eb5c07c7644da5ad3e4901a9355c43f406 Mon Sep 17 00:00:00 2001 From: Tristan Youngs Date: Mon, 9 Dec 2024 14:02:12 +0000 Subject: [PATCH] build: Don't try to update release info on the website unless actually releasing (#2025) Co-authored-by: Adam Washington --- .github/workflows/_publishing.yml | 1 + .github/workflows/qc/action.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_publishing.yml b/.github/workflows/_publishing.yml index f4f1a9f0f2..305be91a8d 100644 --- a/.github/workflows/_publishing.yml +++ b/.github/workflows/_publishing.yml @@ -32,6 +32,7 @@ jobs: HARBOR_SECRET: ${{ secrets.HARBOR_SECRET }} - name: Update Version Information uses: "./.github/workflows/update-release-info" + if: ${{ inputs.publishType == 'release' }} with: createPR: ${{ ! endsWith(github.ref, 'pre') }} releaseVersion: ${{ env.dissolveVersion }} diff --git a/.github/workflows/qc/action.yml b/.github/workflows/qc/action.yml index 52f469a9b7..7416c71636 100644 --- a/.github/workflows/qc/action.yml +++ b/.github/workflows/qc/action.yml @@ -16,9 +16,11 @@ runs: # Ensure that the PR title fits the conventional commits framework if: github.event_name == 'pull_request' shell: bash + env: + TITLE: ${{ github.event.pull_request.title }} run: | set -ex - echo '${{ github.event.pull_request.title }}' | awk "/(^feat:)|(^fix:)|(^doc:)|(^perf:)|(^refactor:)|(^style:)|(^test:)|(^chore:)|(^revert:)|(^build:)/" | grep . + echo "${TITLE}" | awk "/(^feat:)|(^fix:)|(^doc:)|(^perf:)|(^refactor:)|(^style:)|(^test:)|(^chore:)|(^revert:)|(^build:)/" | grep . - name: C++ Formatting shell: bash