Compare commits

...

2 Commits

Author SHA1 Message Date
c30091e807 Testing new format
All checks were successful
Get latest release version / get-version (push) Successful in 7s
2024-06-03 22:17:47 -05:00
b7c7424377 Testing new format 2024-06-03 22:17:35 -05:00

View File

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