Skip to content

Commit aafa34f

Browse files
committed
Use ref_name to know if we should push
1 parent e06e7cf commit aafa34f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ jobs:
6666
GIT_COMMIT_USERNAME: "${{ github.actor }}"
6767
PKGNAME: downgrade
6868
PKGVER: ${{ needs.release.outputs.version }}
69-
PKGREL: 1
70-
PUSH: 0
69+
PKGREL: 1 # always reset
70+
PUSH: ${{ github.ref_name == 'main' && '1' || '0' }}
7171
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)