github: only deploy snapshot from main branch

This commit is contained in:
Harsh Shandilya 2022-02-02 12:48:25 +05:30
parent cc003020f6
commit a6f2c0356b
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -62,7 +62,7 @@ jobs:
deploy-release-snapshot:
runs-on: ubuntu-latest
if: "github.event_name == 'push'"
if: "github.event_name == 'push' && github.event.ref == 'refs/heads/main'"
needs: [ "run-unit-tests", "stylecheck" ]
steps:
- name: Checkout repository