Standardize remote repository monitoring setup
All checks were successful
Build on Commit / build-and-push-image (push) Successful in 2m46s
Get latest release version / get-version (push) Successful in 6s

This commit is contained in:
2024-06-04 11:52:39 -05:00
parent 567f359b50
commit 8eaa4b081d
4 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
.gitea/
README.md README.md
docker-compose.yml docker-compose.yml
.gitignore .gitignore
*.env *.env
release-versions

View File

@@ -6,7 +6,7 @@ on:
branches: branches:
- "main" - "main"
paths-ignore: paths-ignore:
- ".gitea/**" - ".gitea/workflows/**"
schedule: schedule:
- cron: "0 0 * * 0" - cron: "0 0 * * 0"

View File

@@ -3,6 +3,9 @@ on:
schedule: schedule:
- cron: "30 * * * *" - cron: "30 * * * *"
env:
MONITOR_URL: "https://api.github.com/repos/pterodactyl/panel/releases/latest"
jobs: jobs:
get-version: get-version:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -15,8 +18,8 @@ jobs:
- name: Fetch release version - name: Fetch release version
id: version-check id: version-check
run: | run: |
VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name) VERSION_TAG=$(curl -sL $MONITOR_URL | jq -r .tag_name)
echo "$VERSION_TAG" > release-versions/panel-latest.txt echo "$VERSION_TAG" > .gitea/remote-releases/latest.txt
echo ::set-output name=version::"$VERSION_TAG" echo ::set-output name=version::"$VERSION_TAG"
- name: Check for modified files - name: Check for modified files
id: git-check id: git-check