Skip to content

Commit d480a94

Browse files
committed
ci: get repo url
1 parent dde97a1 commit d480a94

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/create_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
- name: Checkout project sources
1717
uses: actions/checkout@v4
1818

19+
- name: Get Repository URL
20+
id: get_repo_url
21+
run: echo "REPO_URL=https://github.com/${{ github.repository }}" >> $GITHUB_OUTPUT
22+
1923
- name: Build Changelog
2024
id: github_release
2125
uses: mikepenz/release-changelog-builder-action@v5

release_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
},
7272
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
7373
"pr_template": "- #{{TITLE}} (##{{NUMBER}}) - #{{AUTHOR}}",
74-
"commit_template": "- #{{TITLE}} ([#{{MERGE_SHA}}](${{ steps.get_repo_url.outputs.REPO_URL }}/commit/#{{MERGE_SHA}}))",
74+
"commit_template": "- #{{TITLE}} ([`#{{MERGE_SHA}}`](${{steps.get_repo_url.outputs.REPO_URL}}/commit/#{{MERGE_SHA}}))",
7575
"empty_template": "- no changes"
7676
}

0 commit comments

Comments
 (0)