Skip to content

Commit 110656a

Browse files
authored
Fix scheduled release notes generation (#5521)
* Update gitignore * Update make-release-notes * Update GitHub action * cleanup * Select correct part of repository name
1 parent 61f1744 commit 110656a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/make-release-notes.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,20 @@ jobs:
5555
- name: Install dotnet-script
5656
run: dotnet tool install release-notes --tool-path dotnet-tool
5757

58+
- name: Set repository name environment variable
59+
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
60+
5861
- name: Find versions for branch
5962
id: versions
6063
run: |
61-
readarray -t lines < <(dotnet-tool/release-notes "${{ github.event.organization.login }}" "${{ github.event.repository.name }}" current-version --query "${{ matrix.branch }}" --version 0.0.1 --token ${{ secrets.GITHUB_TOKEN }} --releasetagformat VERSION)
64+
readarray -t lines < <(dotnet-tool/release-notes "${{ github.repository_owner }}" "${{ env.repository_name }}" current-version --query "${{ matrix.branch }}" --version 0.0.1 --token ${{ secrets.GITHUB_TOKEN }} --releasetagformat VERSION)
6265
echo "::set-output name=current::$(echo ${lines[0]})"
6366
echo "::set-output name=next::$(echo ${lines[1]})"
6467
echo ${lines[@]}
6568
6669
- name: Generate release notes
6770
run: |
68-
dotnet-tool/release-notes "${{ github.event.organization.login }}" "${{ github.event.repository.name }}" --version ${{ steps.versions.outputs.next }} --token ${{ secrets.GITHUB_TOKEN }} --format asciidoc --output docs/release-notes
71+
dotnet-tool/release-notes "${{ github.repository_owner }}" "${{ env.repository_name }}" --version ${{ steps.versions.outputs.next }} --token ${{ secrets.GITHUB_TOKEN }} --format asciidoc --output docs/release-notes
6972
rm dotnet-tool/release-notes
7073
git status
7174
- name: "PR ${{ matrix.branch }}"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ launchSettings.json
8282
project.lock.json
8383
.vs
8484
.vs/*
85+
.ionide
86+
.ionide/*
8587

8688
.idea/
8789
*.sln.iml

0 commit comments

Comments
 (0)