Skip to content

Commit 9aedfc4

Browse files
committed
wip
1 parent a7fcdfb commit 9aedfc4

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/preview_release_notes.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
preview_release_notes:
1414
name: Preview Release Notes
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
issues: write
1619
steps:
1720
- name: Check out repository
1821
uses: actions/checkout@v4
@@ -24,9 +27,16 @@ jobs:
2427
python-version: '${{ vars.PYTHON_VERSION }}'
2528
- name: Generate Release Notes
2629
id: generate_release_notes
27-
run: python -m scripts.release.release_notes -s $INITIAL_COMMIT_SHA -v $INITIAL_VERSION -o release_notes_tmp.md
30+
run: |
31+
python -m scripts.release.release_notes -s $INITIAL_COMMIT_SHA -v $INITIAL_VERSION -o release_notes_tmp.md
2832
env:
2933
INITIAL_COMMIT_SHA: ${{ vars.RELEASE_INITIAL_COMMIT_SHA }}
3034
INITIAL_VERSION: ${{ vars.RELEASE_INITIAL_VERSION }}
3135
- name: Summarize results
3236
run: echo $(cat release_notes_tmp.md) >> $GITHUB_STEP_SUMMARY
37+
- name: Update PR comment
38+
run: |
39+
gh issue comment $ISSUE --edit-last --create-if-none --body-file release_notes_tmp.md
40+
env:
41+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
ISSUE: ${{ github.event.issue.html_url }}

.github/workflows/require_changelog.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ on:
1111

1212
jobs:
1313
validate-changelog:
14-
name: Check for valid changelog entry in Pull Request
14+
name: Check for valid changelog entry
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1618
steps:
1719
- name: Check out repository
1820
uses: actions/checkout@v4
@@ -23,7 +25,8 @@ jobs:
2325
with:
2426
python-version: '${{ vars.PYTHON_VERSION }}'
2527
- name: Check if changelog entry file was added in this PR
26-
run: python -m scripts.release.check_changelog -b $BASE_SHA -f $FAIL_ON_NO_CHANGES >> $GITHUB_STEP_SUMMARY
28+
run: |
29+
python -m scripts.release.check_changelog -b $BASE_SHA -f $FAIL_ON_NO_CHANGES | tee >> $GITHUB_STEP_SUMMARY
2730
env:
2831
BASE_SHA: ${{ github.event.pull_request.base.sha }}
2932
FAIL_ON_NO_CHANGES: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}

0 commit comments

Comments
 (0)