Skip to content

Commit

Permalink
PF-1046 - use sha as unique identifier for markdown file (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bestrand authored Jan 31, 2024
1 parent ff11fbb commit f72cbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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('<title>', '${{ 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 }}`);
Expand Down

0 comments on commit f72cbd8

Please sign in to comment.