fix drone use of env vars so it can pull from forks and actually use the right branch
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2021-07-06 16:23:51 -07:00
parent df43870e61
commit 8f88f614f2
1 changed files with 6 additions and 2 deletions

View File

@ -187,10 +187,10 @@ steps:
- git init
# -o UserKnownHostsFile=../known_hosts
- git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -i ../id_rsa'
- git remote add origin $DRONE_GIT_SSH_URL
- git remote add origin $Env:DRONE_GIT_SSH_URL
- git pull origin trunk
- git fetch --tags
- git checkout $DRONE_COMMIT
- git checkout $Env:DRONE_COMMIT
- name: fetch
image: openpriv/flutter-desktop:windows-sdk30-fdev2.3rc
@ -222,6 +222,9 @@ steps:
- name: package-windows
image: openpriv/nsis:latest
when:
event: push
status: [ success ]
environment:
pfx:
from_secret: pfx
@ -272,3 +275,4 @@ trigger:
branch: trunk
event:
- push
- pull_request