Standardize remote repository monitoring setup
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
branches:
|
||||
- "main"
|
||||
paths-ignore:
|
||||
- ".gitea/**"
|
||||
- ".gitea/workflows/**"
|
||||
schedule:
|
||||
- cron: "0 0 * * 0"
|
||||
|
||||
|
@@ -3,6 +3,9 @@ on:
|
||||
schedule:
|
||||
- cron: "30 * * * *"
|
||||
|
||||
env:
|
||||
MONITOR_URL: "https://api.github.com/repos/pterodactyl/panel/releases/latest"
|
||||
|
||||
jobs:
|
||||
get-version:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -15,8 +18,8 @@ jobs:
|
||||
- name: Fetch release version
|
||||
id: version-check
|
||||
run: |
|
||||
VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name)
|
||||
echo "$VERSION_TAG" > release-versions/panel-latest.txt
|
||||
VERSION_TAG=$(curl -sL $MONITOR_URL | jq -r .tag_name)
|
||||
echo "$VERSION_TAG" > .gitea/remote-releases/latest.txt
|
||||
echo ::set-output name=version::"$VERSION_TAG"
|
||||
- name: Check for modified files
|
||||
id: git-check
|
||||
|
Reference in New Issue
Block a user