Skip to content

Commit

Permalink
fix merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Mar 29, 2024
2 parents e97a964 + c56458f commit 33a8432
Show file tree
Hide file tree
Showing 157 changed files with 2,826 additions and 5,716 deletions.
2,276 changes: 62 additions & 2,214 deletions .github/actions/javascript/isStagingDeployLocked/index.js

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as core from '@actions/core';
import GithubUtils from '@github/libs/GithubUtils';

const run = function (): Promise<void> {
return GithubUtils.getStagingDeployCash()
.then(({labels, number}) => {
const labelsNames = labels.map((label) => {
if (typeof label === 'string') {
return '';
}
return label.name;
});
console.log(`Found StagingDeployCash with labels: ${JSON.stringify(labelsNames)}`);
core.setOutput('IS_LOCKED', labelsNames.includes('🔐 LockCashDeploys 🔐'));
core.setOutput('NUMBER', number);
})
.catch((err) => {
console.warn('No open StagingDeployCash found, continuing...', err);
core.setOutput('IS_LOCKED', false);
core.setOutput('NUMBER', 0);
});
};

if (require.main === module) {
run();
}

export default run;
Loading

0 comments on commit 33a8432

Please sign in to comment.