Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
This commit is contained in:
commit
da16247176
@ -21,22 +21,25 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
token: ${{ secrets.NEWRELEASES_TOKEN }}
|
token: ${{ secrets.NEWRELEASES_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
projects=$(curl -H "X-Key: $TOKEN" \
|
ls -l
|
||||||
|
projects=$(curl -H "X-Key: $token" \
|
||||||
https://api.newreleases.io/v1/projects)
|
https://api.newreleases.io/v1/projects)
|
||||||
echo $projects > project_json
|
echo $projects > project_json
|
||||||
|
|
||||||
jq -r '.projects[] | "\(.id) \(.name)"' project_json | while read -r id name; do
|
jq -r '.projects[] | "\(.id) \(.name)"' project_json | while read -r id name; do
|
||||||
version=$(curl -H "X-Key: $TOKEN" \
|
version=$(curl -H "X-Key: $token" \
|
||||||
https://api.newreleases.io/v1/projects/$id/latest-release)
|
https://api.newreleases.io/v1/projects/$id/latest-release)
|
||||||
ls -l
|
|
||||||
echo "Project Name: $name, Project ID: $id, Version: $version"
|
|
||||||
jq -n --arg name "$name" --arg version "$version" '{name: $name, version: $version}' > json/versions.json
|
jq -n --arg name "$name" --arg version "$version" '{name: $name, version: $version}' > json/versions.json
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Commit JSON
|
- name: Commit JSON
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.PAT_MICHEL }}
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "Github Actions[bot]"
|
gh auth login --with-token <<< $TOKEN
|
||||||
git config --global user.name "GitHub Actions"
|
gh auth status
|
||||||
|
git config --global user.email "michel.roegl-brunner@htl-braunau.at"
|
||||||
|
git config --global user.name "GitHub Actions[bot]"
|
||||||
git add json/versions.json
|
git add json/versions.json
|
||||||
git commit -m "Add new script"
|
git commit -m "Update versions.json"
|
||||||
git push
|
git push --force
|
||||||
|
Loading…
x
Reference in New Issue
Block a user