Skip to content

Commit 5ac7abe

Browse files
Fix syntax
1 parent 2e27160 commit 5ac7abe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/restore.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
- name: Find backup file version
7777
id: file
7878
run: |
79-
file_version={{ inputs.version }}
80-
size={{ inputs.size }}}
79+
file_version=${{ inputs.version }}
80+
size=${{ inputs.size }}}
8181
echo "$file_version"
8282
V3_8_COMPATIBLE="3.6 3.7 3.8 3.9 3.10"
8383
@@ -98,8 +98,8 @@ jobs:
9898
az storage blob download \
9999
--account-name ghesresults \
100100
--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 }}" \
103103
--connection-string "${{ secrets.CONNECTIONSTRING }}"
104104
105105
- name: Unzip backup and setup symlink
@@ -108,7 +108,7 @@ jobs:
108108
dir_name=$(date +%s)
109109
mkdir "$HOME/ghe-backup-data/$dir_name"
110110
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"
112112
113113
ln -s "$dir_name" "$HOME/ghe-backup-data/current"
114114
@@ -119,7 +119,7 @@ jobs:
119119
run: chmod 0600 "$HOME/backup"
120120

121121
- name: change version
122-
run: echo "{{ inputs.version }}.0" > "$HOME/version"
122+
run: echo "${{ inputs.version }}.0" > "$HOME/version"
123123

124124
- name: Prepare for restore
125125
run: ssh -p122 -i "$HOME/backup" -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -s"

0 commit comments

Comments
 (0)