Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey010 committed Mar 29, 2024
2 parents 060e985 + 5a8cb7f commit 95c6986
Show file tree
Hide file tree
Showing 131 changed files with 2,529 additions and 5,451 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 95c6986

Please sign in to comment.