mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
tools: use github.actor instead of bot username for release proposals
PR-URL: https://github.com/nodejs/node/pull/56232 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
1 parent
7a8071b43c
commit
4e3cab44cb
1 file changed
+2
-5
@@ -1,5 +1,4 @@
|
||||
# This action requires the following secrets to be set on the repository:
|
||||
# GH_USER_NAME: GitHub user whose Jenkins and GitHub token are defined below
|
||||
# GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes
|
||||
|
||||
name: Create Release Proposal
|
||||
@@ -52,20 +51,18 @@ jobs:
|
||||
run: |
|
||||
ncu-config set branch "${RELEASE_BRANCH}"
|
||||
ncu-config set upstream origin
|
||||
ncu-config set username "$USERNAME"
|
||||
ncu-config set username "$GITHUB_ACTOR"
|
||||
ncu-config set token "$GH_TOKEN"
|
||||
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
|
||||
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
|
||||
env:
|
||||
USERNAME: ${{ secrets.JENKINS_USER }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Set up ghauth config (Ubuntu)
|
||||
run: |
|
||||
mkdir -p "${XDG_CONFIG_HOME:-~/.config}/changelog-maker"
|
||||
echo '{}' | jq '{user: env.USERNAME, token: env.TOKEN}' > "${XDG_CONFIG_HOME:-~/.config}/changelog-maker/config.json"
|
||||
echo '{}' | jq '{user: env.GITHUB_ACTOR, token: env.TOKEN}' > "${XDG_CONFIG_HOME:-~/.config}/changelog-maker/config.json"
|
||||
env:
|
||||
USERNAME: ${{ secrets.JENKINS_USER }}
|
||||
TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Setup git author
|
||||
|
||||
Reference in new issue
Block a user