Clean up for prod use
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: Get latest release version
|
name: Get latest release version
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "4 * * * *"
|
- cron: "30 * * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get-version:
|
get-version:
|
||||||
@@ -16,19 +16,15 @@ jobs:
|
|||||||
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 https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name)
|
||||||
echo "$VERSION_TAG"
|
|
||||||
echo "$VERSION_TAG" > release-versions/panel-latest.txt
|
echo "$VERSION_TAG" > release-versions/panel-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
|
||||||
run: |
|
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
||||||
echo "Version tag: ${{ steps.version-check.outputs.version }}"
|
|
||||||
echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
|
||||||
- name: Commit latest release version
|
- name: Commit latest release version
|
||||||
if: steps.git-check.outputs.modified == 'true'
|
if: steps.git-check.outputs.modified == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "Version tag: ${{ steps.version-check.outputs.version }}"
|
git config --global user.name 'Actions'
|
||||||
git config --global user.name 'Mindfang'
|
git config --global user.email 'noreply@taco.quest'
|
||||||
git config --global user.email 'mindfang@taco.quest'
|
|
||||||
git commit -am "Trigger new release autobuild for ${{ steps.version-check.outputs.version }}"
|
git commit -am "Trigger new release autobuild for ${{ steps.version-check.outputs.version }}"
|
||||||
git push
|
git push
|
||||||
|
@@ -1 +1 @@
|
|||||||
v1.11.7
|
v1.11.6
|
||||||
|
Reference in New Issue
Block a user