Skip to content

Commit 2e27160

Browse files
More debugging
1 parent 05889fb commit 2e27160

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,7 +76,8 @@ jobs:
7676
- name: Find backup file version
7777
id: file
7878
run: |
79-
file_version="{{ inputs.version }}"
79+
file_version={{ inputs.version }}
80+
size={{ inputs.size }}}
8081
echo "$file_version"
8182
V3_8_COMPATIBLE="3.6 3.7 3.8 3.9 3.10"
8283
@@ -85,6 +86,7 @@ jobs:
8586
if [ $? -eq 0 ]; then
8687
echo "Version $file_version is acceptable"
8788
echo "version=3.8" >> $GITHUB_OUTPUT
89+
echo "name=v$version-$size.tar.gz" >> $GITHUB_OUTPUT
8890
else
8991
echo "Version $file_version is not acceptable"
9092
exit 1
@@ -93,12 +95,11 @@ jobs:
9395
- name: Download from blob storage
9496
run: |
9597
mkdir ghes-data
96-
filename="v{{ steps.file.outputs.version }}-{{ inputs.size }}.tar.gz"
9798
az storage blob download \
9899
--account-name ghesresults \
99100
--container-name ghes-data \
100-
--name "$filename" \
101-
--file "ghes-data/$filename" \
101+
--name {{ steps.file.outputs.name }} \
102+
--file ghes-data/{{ steps.file.outputs.name }} \
102103
--connection-string "${{ secrets.CONNECTIONSTRING }}"
103104
104105
- name: Unzip backup and setup symlink
@@ -107,8 +108,7 @@ jobs:
107108
dir_name=$(date +%s)
108109
mkdir "$HOME/ghe-backup-data/$dir_name"
109110
110-
filename="v{{ steps.file.outputs.version }}-{{ inputs.size }}.tar.gz"
111-
tar -xvf "ghes-data/$filename" -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

0 commit comments

Comments
 (0)