File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -277,8 +277,11 @@ jobs:
277277 AWS_DEFAULT_REGION : ' ap-south-1'
278278 PRIVATE_KEY : ${{ secrets.AWS_PRIVATE_KEY }}
279279 run : |
280- # echo $VERSION
281- echo ${{ github.event.ref }}
280+ # echo $ref
281+ ref=${{ github.event.ref }}
282+
283+ # echo tag
284+ tag=$(echo "$ref" | sed 's/.*\///')
282285
283286 # get public IP of the linux machine
284287 ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
@@ -312,7 +315,7 @@ jobs:
312315 echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
313316
314317 # ssh into the instance and run the script to build the binary
315- ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh ${{ github.event.ref }}
318+ ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh $tag
316319
317320 # use scp to fetch the built binary out of the instance
318321 scp -i private_key ubuntu@$public_ip:/home/ubuntu/steampipe-postgres-fdw/build-Linux/steampipe_postgres_fdw.so .
You can’t perform that action at this time.
0 commit comments