feat(ssh-copy): replace scp with rsync
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"managerFilePatterns": ["**/action.yml"],
|
"managerFilePatterns": ["**/action.yml"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"##\\s*renovate:\\s*datasource=(?<datasource>[^\\s]+)\\s+depName=(?<depName>[^\\s]+)\\n\\s*[A-Z_]+(?:_VERSION)?\\s*:\\s*[\"']?(?<currentValue>[^\\s\"'#]+)[\"']?"
|
"#+\\s*renovate:\\s*datasource=(?<datasource>[^\\s]+)\\s+depName=(?<depName>[^\\s]+)\\s+[A-Z0-9_]+\\s*:\\s*[\"']?(?<currentValue>[^\\s\"'#]+)[\"']?"
|
||||||
],
|
],
|
||||||
"description": "match any pinned dependency using SCREAMING_SNAKE_CASE naming as ENV"
|
"description": "match any pinned dependency using SCREAMING_SNAKE_CASE naming as ENV"
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-2
@@ -31,8 +31,12 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: ssh-keyscan -H "${{ inputs.host }}" >> ~/.ssh/known_hosts
|
run: ssh-keyscan -H "${{ inputs.host }}" >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
## replace with rsync for proper synchronization
|
- name: install rsync
|
||||||
- name: copy directory
|
shell: bash
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y rsync
|
||||||
|
|
||||||
|
- name: rsync directory
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
scp -r ${{ inputs.source }} ${{ inputs.user }}@${{ inputs.host }}:${{ inputs.target }}
|
scp -r ${{ inputs.source }} ${{ inputs.user }}@${{ inputs.host }}:${{ inputs.target }}
|
||||||
|
rsync -avz --delete ${{ inputs.source }} ${{ inputs.user }}@${{ inputs.host }}:${{ inputs.target }}
|
||||||
|
|||||||
Reference in New Issue
Block a user