balena-io / deploy-to-balena-action

Official Github action to deploy releases to balenaCloud environments
Apache License 2.0
38 stars 13 forks source link

Builds fail when not from default branch. #258

Closed kwaremburg360 closed 9 months ago

kwaremburg360 commented 1 year ago

We've discovered that builds fail if you try to trigger it not from the default branch of the repo. We found the check and can fork and then remove it but we'd like to understand why this check was imposed in the first place.

We'd like to be able to build from develop or master branches.

stevedh commented 9 months ago

Did you get it working off a different branch? I would also like to know the reason for this limitation.

kwaremburg360 commented 9 months ago

You can actually override the default branch with one of the inputs to the GHA.

      - uses: balena-io/deploy-to-balena-action@master
        id: build
        with:
          default_branch: ${{ github.ref_name }}

See the README.md for more details. https://github.com/balena-io/deploy-to-balena-action/blob/master/README.md