From f72cbd8836e5da3e9441502aa9f818f7bad0fd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn-Erik=20Strand?= Date: Wed, 31 Jan 2024 13:06:04 +0100 Subject: [PATCH] PF-1046 - use sha as unique identifier for markdown file (#24) --- .github/workflows/update-release-notes.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-release-notes.yaml b/.github/workflows/update-release-notes.yaml index 2fc208f4e..f4945069f 100644 --- a/.github/workflows/update-release-notes.yaml +++ b/.github/workflows/update-release-notes.yaml @@ -18,11 +18,11 @@ jobs: script: | const fs = require('fs'); const templatePath = '${{ github.workspace }}/.github/templates/template.md'; - const filePath = '${{ github.workspace }}/content/${{ github.event.client_payload.product }}/release-notes/${{ github.event.client_payload.application-name }}-${{ github.event.client_payload.version }}.md'; + const filePath = '${{ github.workspace }}/content/${{ github.event.client_payload.product }}/release-notes/${{ github.event.client_payload.application-name }}-${{ github.event.client_payload.sha }}.md'; const templateFile = fs.readFileSync(templatePath, 'utf8'); const fileContent = templateFile - .replace('', '${{ github.event.client_payload.application-name }}-${{ github.event.client_payload.version }}') + .replace('<title>', '${{ github.event.client_payload.application-name }}-${{ github.event.client_payload.sha }}') .replace('<date>', '${{ github.event.client_payload.date }}') .replace('<issues>', `\n${{ github.event.client_payload.release-notes }}`);