Standardize remote repository monitoring setup
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
.gitea/
|
||||||
README.md
|
README.md
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
.gitignore
|
.gitignore
|
||||||
*.env
|
*.env
|
||||||
release-versions
|
|
@@ -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"
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user