From dea9c26c14bae13dee1d580c0cc323cec5cd413e Mon Sep 17 00:00:00 2001 From: Mindfang Date: Mon, 3 Jun 2024 21:12:08 -0500 Subject: [PATCH] Testing release autobuild system --- .gitea/workflows/monitor.yaml | 25 +++++++++++++++++++++++++ .gitea/workflows/panel-latest.txt | 1 + 2 files changed, 26 insertions(+) create mode 100644 .gitea/workflows/monitor.yaml create mode 100644 .gitea/workflows/panel-latest.txt diff --git a/.gitea/workflows/monitor.yaml b/.gitea/workflows/monitor.yaml new file mode 100644 index 0000000..a08474b --- /dev/null +++ b/.gitea/workflows/monitor.yaml @@ -0,0 +1,25 @@ +name: Get latest release version +on: + schedule: + - cron: "0 10 * * *" +jobs: + get-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.REPO_MOD_TOKEN }} + - name: Fetch release version + run: | + curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | \ + jq -r ".tag_name" > release-versions/swagger-ui-latest.txt + - name: Check for modified files + id: git-check + 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: | + git config --global user.name 'Mindfang' + git config --global user.email 'mindfang@taco.quest' + git commit -am "Autobuilding new release version" + git push diff --git a/.gitea/workflows/panel-latest.txt b/.gitea/workflows/panel-latest.txt new file mode 100644 index 0000000..b5779d4 --- /dev/null +++ b/.gitea/workflows/panel-latest.txt @@ -0,0 +1 @@ +v1.11.6 \ No newline at end of file