diff --git a/.github/workflows/composer-update.yml b/.github/workflows/composer-update.yml index b8d3979..e8fd2b0 100644 --- a/.github/workflows/composer-update.yml +++ b/.github/workflows/composer-update.yml @@ -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',