Skip to content

Commit

Permalink
found the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Oct 12, 2024
1 parent 278478c commit 247df52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,13 @@ jobs:
changelog changelog.md \
--snippets=.snippets \
--dry-run > latest-entry.json
cat latest-entry.json
cat latest-entry.json | python -c "import sys, json; print(json.load(sys.stdin)['content'])" > latest_description.txt
# jq -r ".content" latest-entry.json > latest_description.txt
# sed -i '/^$/d' latest_description.txt
# echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV
jq -r ".content" latest-entry.json > latest_description.txt
sed -i '/^$/d' latest_description.txt
echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV
echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT
cat latest_description.txt >> $GITHUB_OUTPUT
echo '"EOT"' >> $GITHUB_OUTPUT
# echo "latest_version=$(jq -r '.version' latest-entry.json)" >> $GITHUB_ENV
exit 128
echo "latest_version=$(jq -r '.version' latest-entry.json)" >> $GITHUB_ENV
- name: Update changelog with snippets
run: |
poetry run changelog-generator \
Expand Down
2 changes: 1 addition & 1 deletion snippets2changelog/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def branch_name(self) -> str:
try:
return str(self._repo.active_branch)
except Exception as e:
print(f"HEAD is detached: {e}")
# print(f"HEAD is detached: {e}")
return str(self._repo.head.commit.hexsha)

@property
Expand Down

0 comments on commit 247df52

Please sign in to comment.