diff --git a/.dockerignore b/.dockerignore index 42a4677..22cca21 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,5 @@ +.gitea/ README.md docker-compose.yml .gitignore -*.env -release-versions \ No newline at end of file +*.env \ No newline at end of file diff --git a/release-versions/panel-latest.txt b/.gitea/remote-releases/latest.txt similarity index 100% rename from release-versions/panel-latest.txt rename to .gitea/remote-releases/latest.txt diff --git a/.gitea/workflows/commit.yaml b/.gitea/workflows/commit.yaml index a2a09fd..a8780e0 100644 --- a/.gitea/workflows/commit.yaml +++ b/.gitea/workflows/commit.yaml @@ -6,7 +6,7 @@ on: branches: - "main" paths-ignore: - - ".gitea/**" + - ".gitea/workflows/**" schedule: - cron: "0 0 * * 0" diff --git a/.gitea/workflows/monitor.yaml b/.gitea/workflows/monitor.yaml index b24933d..a26a99c 100644 --- a/.gitea/workflows/monitor.yaml +++ b/.gitea/workflows/monitor.yaml @@ -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