iScsc / blog.iscsc.fr

GNU General Public License v3.0
0 stars 7 forks source link

Skip automatic deployment job if secrets aren't set (especially for forks) #32

Closed ctmbl closed 3 months ago

ctmbl commented 4 months ago

to test it properly i have to push this comit to my main branch on my own fork I also added a smoke test fake secret to test it here

ctmbl commented 3 months ago

EDIT: since https://github.com/iScsc/blog.iscsc.fr/pull/57#issuecomment-2094518836 I had to update this solution because some things were flawed

I've been down the rabbit hole and it seems to be no nice way to do what I want to do here.

TLDR:

Workflow syntax: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#env