From e7079e9ea92f98c29522185d390193ab1911efce Mon Sep 17 00:00:00 2001 From: Mindfang Date: Tue, 4 Jun 2024 08:55:54 -0500 Subject: [PATCH] Trying another format --- .gitea/workflows/monitor.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/monitor.yaml b/.gitea/workflows/monitor.yaml index 6422289..77ecca6 100644 --- a/.gitea/workflows/monitor.yaml +++ b/.gitea/workflows/monitor.yaml @@ -1,10 +1,7 @@ name: Get latest release version on: schedule: - - cron: "40 * * * *" - -env: - VERSION_TAG: "" + - cron: "57 * * * *" jobs: get-version: @@ -21,6 +18,7 @@ jobs: VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name) echo "$VERSION_TAG" echo "$VERSION_TAG" > release-versions/panel-latest.txt + echo ::set-output name=version_tag::"$VERSION_TAG" - name: Check for modified files id: git-check 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' needs: version-check run: | - echo "$VERSION_TAG" + echo "${{ steps.version-check.outputs.version-tag }}" git config --global user.name 'Mindfang' 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