76
76
- name : Find backup file version
77
77
id : file
78
78
run : |
79
- file_version={{ inputs.version }}
80
- size={{ inputs.size }}}
79
+ file_version=$ {{ inputs.version }}
80
+ size=$ {{ inputs.size }}}
81
81
echo "$file_version"
82
82
V3_8_COMPATIBLE="3.6 3.7 3.8 3.9 3.10"
83
83
98
98
az storage blob download \
99
99
--account-name ghesresults \
100
100
--container-name ghes-data \
101
- --name {{ steps.file.outputs.name }} \
102
- --file ghes-data/{{ steps.file.outputs.name }} \
101
+ --name "$ {{ steps.file.outputs.name }}" \
102
+ --file " ghes-data/$ {{ steps.file.outputs.name }}" \
103
103
--connection-string "${{ secrets.CONNECTIONSTRING }}"
104
104
105
105
- name : Unzip backup and setup symlink
@@ -108,7 +108,7 @@ jobs:
108
108
dir_name=$(date +%s)
109
109
mkdir "$HOME/ghe-backup-data/$dir_name"
110
110
111
- tar -xvf ghes-data/{{ steps.file.outputs.name }} -C "$HOME/ghe-backup-data/$dir_name"
111
+ tar -xvf " ghes-data/$ {{ steps.file.outputs.name }}" -C "$HOME/ghe-backup-data/$dir_name"
112
112
113
113
ln -s "$dir_name" "$HOME/ghe-backup-data/current"
114
114
@@ -119,7 +119,7 @@ jobs:
119
119
run : chmod 0600 "$HOME/backup"
120
120
121
121
- name : change version
122
- run : echo "{{ inputs.version }}.0" > "$HOME/version"
122
+ run : echo "$ {{ inputs.version }}.0" > "$HOME/version"
123
123
124
124
- name : Prepare for restore
125
125
run : ssh -p122 -i "$HOME/backup" -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -s"
0 commit comments