Skip to content

Commit d7d68fd

Browse files
committed
Use filename variable
1 parent e40b414 commit d7d68fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/api-docs-generator.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
- name: Parse changelog
5656
id: changelog
5757
run: |
58-
version="$(cat integrations-api.yaml | grep -Po '(?<=version:\s.)[a-zA-Z0-9.]*(?=.$)')"
59-
commit="$(cat integrations-api.yaml | grep -Pzo "(?<=$version:\s>\n)[\s\S]*?[\r\n]{2}" | tr -s ' ')"
58+
version="$(cat ${{ env.FILE_NAME }} | grep -Po '(?<=version:\s.)[a-zA-Z0-9.]*(?=.$)')"
59+
commit="$(cat ${{ env.FILE_NAME }} | grep -Pzo "(?<=$version:\s>\n)[\s\S]*?[\r\n]{2}" | tr -s ' ')"
6060
commit="${commit//'%'/'%25'}"
6161
commit="${commit//$'\n'/'%0A'}"
6262
commit="${commit//$'\r'/'%0D'}"

0 commit comments

Comments
 (0)