Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
29cmb committed Nov 29, 2024
1 parent 9bbe633 commit 754560c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
SSH_PORT: ${{ secrets.SSH_PORT }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
run: |
sshpass -p $SSH_PASSWORD sftp -o StrictHostKeyChecking=no -P $SSH_PORT $SSH_USERNAME@$SSH_DOMAIN << 'EOF'
get server.properties server.properties
sshpass -p $SSH_PASSWORD sftp -o StrictHostKeyChecking=no -P $SSH_PORT $SSH_USERNAME@$SSH_DOMAIN << EOF
get /path/to/server.properties server.properties
bye
EOF
Expand All @@ -40,8 +40,8 @@ jobs:
RESOURCE_PACK_URL: ${{ github.event.inputs.resource_pack_url }}
RESOURCE_PACK_HASH: ${{ github.event.inputs.resource_pack_hash }}
run: |
sed -i 's|^resource-pack=.*|resource-pack=${RESOURCE_PACK_URL}|' server.properties
sed -i 's|^resource-pack-sha1=.*|resource-pack-sha1=${RESOURCE_PACK_HASH}|' server.properties
sed -i "s|^resource-pack=.*|resource-pack=${RESOURCE_PACK_URL}|" server.properties
sed -i "s|^resource-pack-sha1=.*|resource-pack-sha1=${RESOURCE_PACK_HASH}|" server.properties
- name: Upload server.properties
env:
Expand All @@ -50,7 +50,7 @@ jobs:
SSH_PORT: ${{ secrets.SSH_PORT }}
SSH_PASSWORD: ${{ secrets.SSH_PASSWORD }}
run: |
sshpass -p $SSH_PASSWORD sftp -o StrictHostKeyChecking=no -P $SSH_PORT $SSH_USERNAME@$SSH_DOMAIN << 'EOF'
put server.properties server.properties
sshpass -p $SSH_PASSWORD sftp -o StrictHostKeyChecking=no -P $SSH_PORT $SSH_USERNAME@$SSH_DOMAIN << EOF
put server.properties /path/to/server.properties
bye
EOF

0 comments on commit 754560c

Please sign in to comment.