Skip to content

Commit aed17f3

Browse files
committed
Clarify token precedence between GitHub and GitLab
1 parent 8769d0f commit aed17f3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
OTA_ENGINE_SENDINBLUE_API_KEY='xkeysib-3f51c…'
22
OTA_ENGINE_SMTP_PASSWORD='password'
3+
4+
# If both GitHub and GitLab tokens are defined, GitHub takes precedence for dataset publishing
35
OTA_ENGINE_GITHUB_TOKEN=ghp_XXXXXXXXX
6+
47
OTA_ENGINE_GITLAB_TOKEN=XXXXXXXXXX
58
OTA_ENGINE_GITLAB_RELEASES_TOKEN=XXXXXXXXXX

scripts/dataset/publish/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import publishGitHub from './github/index.js';
22
import publishGitLab from './gitlab/index.js';
33

44
export default function publishRelease({ archivePath, releaseDate, stats }) {
5+
// If both GitHub and GitLab tokens are defined, GitHub takes precedence
56
if (process.env.OTA_ENGINE_GITHUB_TOKEN) {
67
return publishGitHub({ archivePath, releaseDate, stats });
78
}

0 commit comments

Comments
 (0)