Skip to content

ci: исправить startup failure в release.yml - #85

Merged
fso13 merged 1 commit into
mainfrom
fix/release-workflow-if-secrets
Oct 23, 2026
Merged

fso13 merged 1 commit into
mainfrom
fix/release-workflow-if-secrets

Conversation

@fso13

@fso13 fso13 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Причина

secrets нельзя использовать в step-level if: GitHub не может провалидировать workflow, поэтому на каждый push появлялся startup failure с 0 jobs (воспроизводилось и на main).

Исправление

  • Три условия if: ${{ secrets... }} заменены на shell-guard внутри самих шагов.
  • Секреты остаются в env конкретного шага, а не в env всего job.
  • Если секрет не задан, шаг печатает причину пропуска и завершается успешно.

Проверка

  • actionlint: 0 ошибок.
  • YAML парсится.

GitHub Actions does not allow the secrets context in step-level if
conditions. The workflow failed to parse on every push, producing a
startup failure with zero jobs.

Move the availability checks into the steps themselves: empty secrets now
print a skip message and exit successfully. Signing secrets stay scoped to
their own step env instead of the whole job.
@fso13
fso13 merged commit fa04ce6 into main Oct 23, 2026
11 checks passed
@fso13
fso13 deleted the fix/release-workflow-if-secrets branch October 23, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants