File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -85,19 +85,22 @@ jobs:
85
85
run : |
86
86
version="${{ inputs.version }}"
87
87
size="${{ inputs.size }}"
88
- V3_8_COMPATIBLE="3.6 3.7 3.8 3.9 3.10"
89
- echo "$V3_8_COMPATIBLE" | tr " " '\n' | grep -F -q -x "$version"
90
- exit_code="$?"
91
- if [ "$exit_code" -eq "0" ]; then
92
- echo "Version $version is acceptable"
88
+ V3_6_COMPATIBLE="3.6 3.7"
89
+ V3_8_COMPATIBLE="3.8 3.9 3.10"
90
+ if echo "$V3_8_COMPATIBLE" | grep -q -w "$version"; then
91
+ echo "Version $version is acceptable by 3.8 backup"
93
92
file_version=3.8
94
- echo "version=3.8" >> "$GITHUB_OUTPUT"
95
- echo "name=v$file_version-$size.tar.gz" >> "$GITHUB_OUTPUT"
93
+ elif echo "$V3_6_COMPATIBLE" | grep -q -w "$version"; then
94
+ echo "Version $version is acceptable by 3.6 backup"
95
+ file_version=3.6
96
96
else
97
97
echo "Version $version is not acceptable"
98
98
exit 1
99
99
fi
100
100
101
+ echo "version=$file_version" >> "$GITHUB_OUTPUT"
102
+ echo "name=v$file_version-$size.tar.gz" >> "$GITHUB_OUTPUT"
103
+
101
104
- name : Download from blob storage
102
105
run : |
103
106
mkdir ghes-data
You can’t perform that action at this time.
0 commit comments