File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,18 @@ jobs:
21
21
run : |
22
22
set -e
23
23
export latestVersion=$(curl -s https://api.github.com/repos/kube-HPC/hkubectl/releases/latest | jq -r .tag_name)
24
- echo "Latest version: $latestVersion"
25
- mkdir -p site/hkubectl_files || { echo "Failed to create directory"; exit 1; }
24
+ mkdir -p site/hkubectl_files
26
25
curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-linux -o site/hkubectl_files/hkubectl-linux
27
26
curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-macos -o site/hkubectl_files/hkubectl-macos
28
27
curl -L --retry 3 --retry-delay 5 https://github.com/kube-HPC/hkubectl/releases/download/${latestVersion}/hkubectl-win.exe -o site/hkubectl_files/hkubectl-win.exe
29
- echo "Downloaded files:"
30
- ls -R site
31
28
32
29
- name : Commit and push updated files to kube-HPC.github.io
33
30
run : |
34
31
set -e
35
32
git config --global user.email "[email protected] "
36
33
git config --global user.name "GitHub Action"
37
- ls site/hkubectl_files || { echo "No files found"; exit 1; }
38
- git fetch origin
39
34
git checkout test_branch_1 || git checkout -b test_branch_1 origin/test_branch_1
40
35
git add -A
41
- git commit -m "Update hkubectl download files to the latest release" --allow-empty
36
+ git commit -m "Update hkubectl download files to the latest release"
42
37
git push origin test_branch_1
43
38
You can’t perform that action at this time.
0 commit comments