Skip to content

Commit

Permalink
* Try again J:DEF-3582
Browse files Browse the repository at this point in the history
  • Loading branch information
JPLachance committed Nov 12, 2024
1 parent e336d60 commit 2c911c4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/java-maven-openjdk-dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,17 @@ jobs:
owner: owner,
repo: repo
});
# For debugging purposes
console.log(`Repository properties: ${JSON.stringify(response.data)}`);
const distributedProperty = response.data.find(prop => prop.property_name === 'is_distributed');
# Default to True if the property is not found
const distributedValue = distributedProperty ? distributedProperty.value : 'true';
# To be used in the dependency-review job
core.setOutput('is_distributed', distributedValue);
const repoDetails = await github.request('GET /repos/{owner}/{repo}', {
owner: owner,
repo: repo
});
const isPublic = repoDetails.data.private ? 'false' : 'true';
# For debugging purposes
console.log(`Is this a public repo? ${isPublic}`);
# To be used in the dependency-review job
core.setOutput('is_public', isPublic);
validate-outputs:
Expand Down

0 comments on commit 2c911c4

Please sign in to comment.