Просмотр исходного кода

fix(notify-discord.yml): update base_sha to use github.event.before for better compatibility with release events

Mathias 1 месяц назад
Родитель
Сommit
c62582f292
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .github/workflows/notify-discord.yml

+ 1 - 1
.github/workflows/notify-discord.yml

@@ -16,7 +16,7 @@ jobs:
         id: changed-files
         uses: tj-actions/changed-files@v34
         with:
-          base_sha: ${{ github.event.release.target_commitish }}
+          base_sha: ${{ github.event.before || 'HEAD~1' }}
           separator: "\n• "
       - name: Discord notification
         env: