We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 639898f commit beb7f41Copy full SHA for beb7f41
source/platforms/github/GitHubAPI.ts
@@ -130,11 +130,6 @@ export class GitHubAPI {
130
return parseInt(perilID)
131
}
132
133
- const info = await this.getUserInfo()
134
- if (info.id) {
135
- return info.id
136
- }
137
-
138
const useGitHubActionsID = process.env["GITHUB_WORKFLOW"]
139
if (useGitHubActionsID) {
140
// This is the user.id of the github-actions app (https://github.com/apps/github-actions)
@@ -143,6 +138,11 @@ export class GitHubAPI {
143
return 41898282
144
145
141
+ const info = await this.getUserInfo()
142
+ if (info.id) {
+ return info.id
+ }
+
146
return undefined
147
148
0 commit comments