tools: use `github.actor` instead of bot username for release proposals · nodejs/node@002ee71
11# This action requires the following secrets to be set on the repository:
2-# GH_USER_NAME: GitHub user whose Jenkins and GitHub token are defined below
32# GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes
4354name: Create Release Proposal
@@ -52,20 +51,18 @@ jobs:
5251run: |
5352 ncu-config set branch "${RELEASE_BRANCH}"
5453 ncu-config set upstream origin
55- ncu-config set username "$USERNAME"
54+ ncu-config set username "$GITHUB_ACTOR"
5655 ncu-config set token "$GH_TOKEN"
5756 ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
5857 ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
5958 env:
60-USERNAME: ${{ secrets.JENKINS_USER }}
6159GH_TOKEN: ${{ github.token }}
62606361 - name: Set up ghauth config (Ubuntu)
6462run: |
6563 mkdir -p "${XDG_CONFIG_HOME:-~/.config}/changelog-maker"
66- echo '{}' | jq '{user: env.USERNAME, token: env.TOKEN}' > "${XDG_CONFIG_HOME:-~/.config}/changelog-maker/config.json"
64+ echo '{}' | jq '{user: env.GITHUB_ACTOR, token: env.TOKEN}' > "${XDG_CONFIG_HOME:-~/.config}/changelog-maker/config.json"
6765 env:
68-USERNAME: ${{ secrets.JENKINS_USER }}
6966TOKEN: ${{ github.token }}
70677168 - name: Setup git author