samuelmeuli / action-electron-builder

:electron: GitHub Action for building and releasing Electron apps
MIT License
658 stars 201 forks source link

The CI gets run twice when using this #23

Closed futurelucas4502 closed 4 years ago

futurelucas4502 commented 4 years ago

I believe this is because we are running git push && git push --tags resulting in the function being called twice: https://github.com/marketplace/actions/electron-builder-action#releasing (step 4)

futurelucas4502 commented 4 years ago

Obvious not a huge issue if you set up what branches to use however it could be useful to provide some documentation on how to do that for newbies

samuelmeuli commented 4 years ago

That's the expected behavior, GitHub Actions executed your workflow once for the pushed commit and once for the pushed tag. This is not related to this action, have a look at the GitHub Actions docs if you'd like to configure your workflow differently.

hodgef commented 4 years ago

To prevent the CI being from run twice you can add this to your workflow:

on:
  push:
    tags:
      - v*