File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 40
40
run : |
41
41
git config --local user.email "[email protected] "
42
42
git config --local user.name "GitHub Action"
43
- git config --local github.token ${{ env.YDBOT_TOKEN }}
43
+ git config --local github.token ${{ env.GH_TOKEN }}
44
44
python ${{ github.action_path }}/update_changelog.py pr_data.txt "${{ inputs.changelog_path }}" "${{ inputs.base_branch }}" "${{ inputs.suffix }}"
Original file line number Diff line number Diff line change 15
15
CATEGORY_PREFIX = "### "
16
16
ITEM_PREFIX = "* "
17
17
18
- YDBOT_TOKEN = os .getenv ("YDBOT_TOKEN " )
18
+ GH_TOKEN = os .getenv ("GH_TOKEN " )
19
19
20
20
@functools .cache
21
21
def get_github_api_url ():
@@ -152,7 +152,7 @@ def fetch_pr_details(pr_id):
152
152
url = f"https://api.github.com/repos/{ get_github_api_url ()} /pulls/{ pr_id } "
153
153
headers = {
154
154
"Accept" : "application/vnd.github.v3+json" ,
155
- "Authorization" : f"token { YDBOT_TOKEN } "
155
+ "Authorization" : f"token { GH_TOKEN } "
156
156
}
157
157
response = requests .get (url , headers = headers )
158
158
response .raise_for_status ()
@@ -162,7 +162,7 @@ def fetch_user_details(username):
162
162
url = f"https://api.github.com/users/{ username } "
163
163
headers = {
164
164
"Accept" : "application/vnd.github.v3+json" ,
165
- "Authorization" : f"token { YDBOT_TOKEN } "
165
+ "Authorization" : f"token { GH_TOKEN } "
166
166
}
167
167
response = requests .get (url , headers = headers )
168
168
response .raise_for_status ()
Original file line number Diff line number Diff line change 39
39
TYPE="${{ github.event.inputs.type }}"
40
40
START="${{ github.event.inputs.start }}"
41
41
BRANCH="${GITHUB_REF_NAME}"
42
-
43
42
echo "::notice:: branch = ${GITHUB_REF_NAME}, start = $START"
44
43
45
44
if [ "$TYPE" == "date" ]; then
86
85
- name : Update Changelog
87
86
uses : ./.github/actions/update_changelog
88
87
env :
89
- YDBOT_TOKEN : ${{ secrets.YDBOT_TOKEN }}
88
+ GH_TOKEN : ${{ secrets.YDBOT_TOKEN }}
90
89
with :
91
90
pr_data : " ${{ needs.gather-prs.outputs.prs }}"
92
91
changelog_path : " ${{ github.event.inputs.changelog_path }}"
Original file line number Diff line number Diff line change 5
5
- cron : ' 0 0 * * 0' # Every Sunday at 00:00
6
6
branches :
7
7
- main
8
+ - stable-*
8
9
workflow_dispatch :
9
10
env :
10
11
GH_TOKEN : ${{ secrets.YDBOT_TOKEN }}
62
63
- name : Update Changelog
63
64
uses : ./.github/actions/update_changelog
64
65
env :
65
- YDBOT_TOKEN : ${{ secrets.YDBOT_TOKEN }}
66
+ GH_TOKEN : ${{ secrets.YDBOT_TOKEN }}
66
67
with :
67
68
pr_data : " ${{ needs.gather-prs.outputs.prs }}"
68
69
changelog_path : " ./CHANGELOG.md" # RODO: Use the correct path to your CHANGELOG.md file
You can’t perform that action at this time.
0 commit comments