From 31c43cd4e0342d78e2d5d957152206dce26403d9 Mon Sep 17 00:00:00 2001 From: Mindfang Date: Mon, 3 Jun 2024 21:58:10 -0500 Subject: [PATCH] Testing with an output variable --- .gitea/workflows/monitor.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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