Skip to content

Commit

Permalink
fix: Package commit details when version_base or version_target is null
Browse files Browse the repository at this point in the history
  • Loading branch information
nlemoine committed Sep 19, 2024
1 parent 121b14e commit d73e921
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/composer-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ jobs:
return [];
}
const [owner, repo] = name.split('/');
const fromCommit = version_base.split(' ')[1];
const toCommit = version_target.split(' ')[1];
const fromCommit = version_base?.split(' ')[1];
const toCommit = version_target?.split(' ')[1];
if (!fromCommit || !toCommit) {
return [];
}
try {
const { data } = await github.rest.repos.compareCommits({
owner: 'Humanoidfr',
Expand Down

0 comments on commit d73e921

Please sign in to comment.