Skip to content

Commit 6668716

Browse files
read the first var
1 parent 4a6c4be commit 6668716

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Changelog
3030
id: create-changelog
3131
run: |
32-
bash scripts/generate_changelog.sh $PACKAGE tmpfile
32+
bash scripts/generate_changelog.sh tmpfile
3333
cat tmpfile >> $GITHUB_STEP_SUMMARY
3434
cat tmpfile >> CHANGELOG.md
3535
echo "changelog_file=tempfile" >> $GITHUB_OUTPUT

scripts/generate_changelog.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
for PACKAGE in "packages/databricks-vscode" "packages/databricks-sdk" "packages/databricks-vscode-types" "."; do
2-
echo "## $PACKAGE" >> $2
2+
echo "## $PACKAGE" >> $1
33

44
TAG=$(git describe --abbrev=0 --match "release-v*")
55
if [ $? -ne 0 ]; then
66
echo "No release tag matching pattern 'release-v*' found. Generating changelog from beggining"
7-
yarn conventional-changelog -k $PACKAGE --commit-path $PACKAGE >> $2
7+
yarn conventional-changelog -k $PACKAGE --commit-path $PACKAGE >> $1
88
else
99
echo "Release tag found. Generating changelog from $TAG"
10-
yarn conventional-changelog --tag-prefix="release-v" -k $PACKAGE --commit-path $PACKAGE >> $2
10+
yarn conventional-changelog --tag-prefix="release-v" -k $PACKAGE --commit-path $PACKAGE >> $1
1111
fi
1212
done

0 commit comments

Comments
 (0)