File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 13
13
preview_release_notes :
14
14
name : Preview Release Notes
15
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : read
18
+ issues : write
16
19
steps :
17
20
- name : Check out repository
18
21
uses : actions/checkout@v4
24
27
python-version : ' ${{ vars.PYTHON_VERSION }}'
25
28
- name : Generate Release Notes
26
29
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
28
32
env :
29
33
INITIAL_COMMIT_SHA : ${{ vars.RELEASE_INITIAL_COMMIT_SHA }}
30
34
INITIAL_VERSION : ${{ vars.RELEASE_INITIAL_VERSION }}
31
35
- name : Summarize results
32
36
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 }}
Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
validate-changelog :
14
- name : Check for valid changelog entry in Pull Request
14
+ name : Check for valid changelog entry
15
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : read
16
18
steps :
17
19
- name : Check out repository
18
20
uses : actions/checkout@v4
23
25
with :
24
26
python-version : ' ${{ vars.PYTHON_VERSION }}'
25
27
- 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
27
30
env :
28
31
BASE_SHA : ${{ github.event.pull_request.base.sha }}
29
32
FAIL_ON_NO_CHANGES : ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}
You can’t perform that action at this time.
0 commit comments