File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
OTA_ENGINE_SENDINBLUE_API_KEY = ' xkeysib-3f51c…'
2
2
OTA_ENGINE_SMTP_PASSWORD = ' password'
3
+
4
+ # If both GitHub and GitLab tokens are defined, GitHub takes precedence for dataset publishing
3
5
OTA_ENGINE_GITHUB_TOKEN = ghp_XXXXXXXXX
6
+
4
7
OTA_ENGINE_GITLAB_TOKEN = XXXXXXXXXX
5
8
OTA_ENGINE_GITLAB_RELEASES_TOKEN = XXXXXXXXXX
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import publishGitHub from './github/index.js';
2
2
import publishGitLab from './gitlab/index.js' ;
3
3
4
4
export default function publishRelease ( { archivePath, releaseDate, stats } ) {
5
+ // If both GitHub and GitLab tokens are defined, GitHub takes precedence
5
6
if ( process . env . OTA_ENGINE_GITHUB_TOKEN ) {
6
7
return publishGitHub ( { archivePath, releaseDate, stats } ) ;
7
8
}
You can’t perform that action at this time.
0 commit comments