diff --git a/.gitea/workflows/monitor.yaml b/.gitea/workflows/monitor.yaml index cca864c..46ff6de 100644 --- a/.gitea/workflows/monitor.yaml +++ b/.gitea/workflows/monitor.yaml @@ -1,7 +1,7 @@ name: Get latest release version on: schedule: - - cron: "42 21 * * *" + - cron: "0 * * * *" jobs: get-version: runs-on: ubuntu-latest @@ -12,9 +12,11 @@ jobs: - name: Prepare the container run: apt-get update && apt-get --no-install-recommends -y install jq - name: Fetch release version + id: version-check run: | curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | \ - jq -r ".tag_name" > release-versions/panel-latest.txt + jq -r ".tag_name" > "$GITEA_OUTPUT" + 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") @@ -23,5 +25,5 @@ jobs: run: | git config --global user.name 'Mindfang' git config --global user.email 'mindfang@taco.quest' - git commit -am "Autobuilding new release version" + git commit -am "Trigger new release autobuild" git push