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 11OTA_ENGINE_SENDINBLUE_API_KEY = ' xkeysib-3f51c…'
22OTA_ENGINE_SMTP_PASSWORD = ' password'
3+
4+ # If both GitHub and GitLab tokens are defined, GitHub takes precedence for dataset publishing
35OTA_ENGINE_GITHUB_TOKEN = ghp_XXXXXXXXX
6+
47OTA_ENGINE_GITLAB_TOKEN = XXXXXXXXXX
58OTA_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';
22import publishGitLab from './gitlab/index.js' ;
33
44export 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 }
You can’t perform that action at this time.
0 commit comments