GeezerVison is showing github.com — tools: use `github.actor` instead of bot username for release proposals · nodejs/node@4e3cab4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/create-release-proposal.yml +2-5Lines changed: 2 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # 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 |
3 | 2 | # GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes |
4 | 3 |
|
5 | 4 | name: Create Release Proposal |
@@ -52,20 +51,18 @@ jobs: |
52 | 51 | run: | |
53 | 52 | ncu-config set branch "${RELEASE_BRANCH}" |
54 | 53 | ncu-config set upstream origin |
55 | | - ncu-config set username "$USERNAME" |
| 54 | + ncu-config set username "$GITHUB_ACTOR" |
56 | 55 | ncu-config set token "$GH_TOKEN" |
57 | 56 | ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)" |
58 | 57 | ncu-config set owner "${GITHUB_REPOSITORY_OWNER}" |
59 | 58 | env: |
60 | | - USERNAME: ${{ secrets.JENKINS_USER }} |
61 | 59 | GH_TOKEN: ${{ github.token }} |
62 | 60 |
|
63 | 61 | - name: Set up ghauth config (Ubuntu) |
64 | 62 | run: | |
65 | 63 | 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" |
67 | 65 | env: |
68 | | - USERNAME: ${{ secrets.JENKINS_USER }} |
69 | 66 | TOKEN: ${{ github.token }} |
70 | 67 |
|
71 | 68 | - name: Setup git author |
|