Files
Pterodactyl-Panel/.gitea/workflows/monitor.yaml
Mindfang e2e4b45814
All checks were successful
Get latest release version / get-version (push) Successful in 7s
Accept install prompt
2024-06-03 21:41:53 -05:00

28 lines
1.0 KiB
YAML

name: Get latest release version
on:
schedule:
- cron: "42 21 * * *"
jobs:
get-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.REPO_MOD_TOKEN }}
- name: Prepare the container
run: apt-get update && apt-get --no-install-recommends -y install jq
- name: Fetch release version
run: |
curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | \
jq -r ".tag_name" > release-versions/panel-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