Trying another format
All checks were successful
Get latest release version / get-version (push) Successful in 6s

This commit is contained in:
2024-06-04 08:55:54 -05:00
parent 20ab46c06b
commit e7079e9ea9

View File

@@ -1,10 +1,7 @@
name: Get latest release version name: Get latest release version
on: on:
schedule: schedule:
- cron: "40 * * * *" - cron: "57 * * * *"
env:
VERSION_TAG: ""
jobs: jobs:
get-version: get-version:
@@ -21,6 +18,7 @@ jobs:
VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name) VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name)
echo "$VERSION_TAG" echo "$VERSION_TAG"
echo "$VERSION_TAG" > release-versions/panel-latest.txt echo "$VERSION_TAG" > release-versions/panel-latest.txt
echo ::set-output name=version_tag::"$VERSION_TAG"
- name: Check for modified files - name: Check for modified files
id: git-check id: git-check
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
@@ -28,8 +26,8 @@ jobs:
if: steps.git-check.outputs.modified == 'true' if: steps.git-check.outputs.modified == 'true'
needs: version-check needs: version-check
run: | run: |
echo "$VERSION_TAG" echo "${{ steps.version-check.outputs.version-tag }}"
git config --global user.name 'Mindfang' git config --global user.name 'Mindfang'
git config --global user.email 'mindfang@taco.quest' git config --global user.email 'mindfang@taco.quest'
git commit -am "Trigger new release autobuild for $VERSION_TAG" git commit -am "Trigger new release autobuild for ${{ steps.version-check.outputs.version-tag }}"
git push git push