From e5d0ac9bd6cb0ba4c91e0839d71e0c4263e2a8ee Mon Sep 17 00:00:00 2001 From: Mindfang Date: Tue, 4 Jun 2024 10:05:03 -0500 Subject: [PATCH] Clean up for prod use --- .gitea/workflows/monitor.yaml | 12 ++++-------- release-versions/panel-latest.txt | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/monitor.yaml b/.gitea/workflows/monitor.yaml index ce305e0..b24933d 100644 --- a/.gitea/workflows/monitor.yaml +++ b/.gitea/workflows/monitor.yaml @@ -1,7 +1,7 @@ name: Get latest release version on: schedule: - - cron: "4 * * * *" + - cron: "30 * * * *" jobs: get-version: @@ -16,19 +16,15 @@ jobs: id: version-check run: | 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::"$VERSION_TAG" - name: Check for modified files id: git-check - run: | - echo "Version tag: ${{ steps.version-check.outputs.version }}" - 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") - name: Commit latest release version if: steps.git-check.outputs.modified == 'true' run: | - echo "Version tag: ${{ steps.version-check.outputs.version }}" - git config --global user.name 'Mindfang' - git config --global user.email 'mindfang@taco.quest' + git config --global user.name 'Actions' + git config --global user.email 'noreply@taco.quest' git commit -am "Trigger new release autobuild for ${{ steps.version-check.outputs.version }}" git push diff --git a/release-versions/panel-latest.txt b/release-versions/panel-latest.txt index 77418c8..a130ad6 100644 --- a/release-versions/panel-latest.txt +++ b/release-versions/panel-latest.txt @@ -1 +1 @@ -v1.11.7 +v1.11.6