Skip to content

Commit

Permalink
style(yaml): fix yamllint errors (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Oct 5, 2023
1 parent 6543438 commit 99526ec
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,23 @@ jobs:
- name: Parse downloads
run: |
base_url="https://download.nvidia.com/XFree86/nvapi-open-source-sdk"
# get all href within span class='file'
downloads_page=$(curl -s "${base_url}/")
echo $downloads_page | \
grep -Eo "<span class='file'><a href='[^']*" | sed -e "s/<span class='file'><a href='//" | \
paste -d, - <(echo $downloads_page | grep -Eo "<span class='date'>[^<]*" | sed -e "s/<span class='date'>//") > downloads.txt
paste -d, - <(echo $downloads_page | grep -Eo "<span class='date'>[^<]*" | \
sed -e "s/<span class='date'>//") > downloads.txt
cat downloads.txt
mkdir -p temp
# git config
cd ./sdk
git config --local user.email "${{ secrets.GH_BOT_EMAIL }}"
git config --local user.name "${{ secrets.GH_BOT_NAME }}"
cd ../temp
# for each download, get the version (first part before -), then check if a matching tag exists in this repo
while read -r line; do
tar_file=$(echo $line | cut -d',' -f1)
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
# remove tar
rm -f $version.tar
# Find all the files in the extracted files and store them in an array
readarray -d '' tar_files < <(find . -type f -print0)
Expand All @@ -119,7 +120,7 @@ jobs:
git commit -m "${version}"
git tag $version
git push "https://oauth2:${{ secrets.GH_BOT_TOKEN }}@github.com/${{ github.repository }}.git" sdk $version
cd ../temp
fi
done < ../downloads.txt

0 comments on commit 99526ec

Please sign in to comment.