When I have been syncing my fork I noticed that the GitHub actions were running on the master branch and failing.
This changes the workflows so that it will only try pushing if the secrets are specified.
You can see some example flows here where I was forcing it to run on any push for testing
Ideally I would use jobs.<job_id>.if to specify the condition, but I could not find a way to see if the secrets were available.
The next best thing was to use jobs.<job_id>.steps.if and check if an environment was available.
When I have been syncing my fork I noticed that the GitHub actions were running on the master branch and failing. This changes the workflows so that it will only try pushing if the secrets are specified.
You can see some example flows here where I was forcing it to run on any push for testing
Ideally I would use
jobs.<job_id>.if
to specify the condition, but I could not find a way to see if the secrets were available. The next best thing was to usejobs.<job_id>.steps.if
and check if an environment was available.