File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 - name : Fetch Latest Kali Linux Version
1515 id : fetch_version
1616 run : |
17- URL=$(curl -s https://kali.download/cloud-images/current/ | grep -oE 'kali-linux-[0-9]+\.[0-9]+-cloud-genericcloud-amd64.tar.xz' | head -n 1)
17+ URL=$(curl -s https://kali.download/cloud-images/current/ | grep -oE 'kali-linux-[0-9]+\.[0-9]+[a-z]? -cloud-genericcloud-amd64.tar.xz' | head -n 1)
1818 FULL_URL="https://kali.download/cloud-images/current/$URL"
19- KALI_VERSION=$(echo $URL | grep -oE '[0-9]+\.[0-9]+')
19+ KALI_VERSION=$(echo $URL | grep -oE '[0-9]+\.[0-9]+[a-z]? ')
2020 echo "KALI_VERSION=$KALI_VERSION" >> $GITHUB_ENV
2121 echo "IMAGE_URL=$FULL_URL" >> $GITHUB_ENV
2222
Original file line number Diff line number Diff line change 2222
2323 - name : Fetch Latest Kali Linux Version
2424 run : |
25- URL=$(curl -s https://kali.download/cloud-images/current/ | grep -oE 'kali-linux-[0-9]+\.[0-9]+-cloud-genericcloud-amd64.tar.xz' | head -n 1)
25+ URL=$(curl -s https://kali.download/cloud-images/current/ | grep -oE 'kali-linux-[0-9]+\.[0-9]+[a-z]? -cloud-genericcloud-amd64.tar.xz' | head -n 1)
2626 FULL_URL="https://kali.download/cloud-images/current/$URL"
27- KALI_VERSION=$(echo $URL | grep -oE '[0-9]+\.[0-9]+')
27+ KALI_VERSION=$(echo $URL | grep -oE '[0-9]+\.[0-9]+[a-z]? ')
2828 echo "KALI_VERSION=$KALI_VERSION" >> $GITHUB_ENV
2929 echo "IMAGE_URL=$FULL_URL" >> $GITHUB_ENV
3030
Original file line number Diff line number Diff line change 1+ v1.0.0
You can’t perform that action at this time.
0 commit comments