Skip to content

Commit 9478ff5

Browse files
committed
more logging and cheks
1 parent d9bda2c commit 9478ff5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
name: Update changelog
4949
runs-on: ubuntu-latest
5050
outputs:
51-
changelog_commitish: ${{ steps.get_sha.outputs.commit_sha }}
51+
changelog_commitish: ${{ steps.get_sha.outputs.commit_sha || steps.commit.outputs.commit_long_sha || github.sha }}
5252

5353
steps:
5454
- name: Checkout repository
@@ -82,8 +82,16 @@ jobs:
8282
author_email: [email protected]
8383
message: "chore(release): Update changelog, package.json and manifest.json versions [skip ci]"
8484

85+
- name: Debug commit info
86+
run: |
87+
echo "Commit long SHA: ${{ steps.commit.outputs.commit_long_sha }}"
88+
echo "Current HEAD: $(git rev-parse HEAD)"
89+
echo "Git log (last 2 commits):"
90+
git log --oneline -2
91+
8592
- name: Get commit SHA
8693
id: get_sha
94+
if: steps.commit.outputs.commit_long_sha != ''
8795
run: echo "commit_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
8896

8997
create_github_release:

0 commit comments

Comments
 (0)