Compare commits
2 Commits
f1079e2fa8
...
c30091e807
| Author | SHA1 | Date | |
|---|---|---|---|
| c30091e807 | |||
| b7c7424377 |
@@ -1,7 +1,7 @@
|
||||
name: Get latest release version
|
||||
on:
|
||||
schedule:
|
||||
- cron: "04 * * * *"
|
||||
- cron: "18 * * * *"
|
||||
jobs:
|
||||
get-version:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -14,10 +14,8 @@ jobs:
|
||||
- name: Fetch release version
|
||||
id: version-check
|
||||
run: |
|
||||
curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | \
|
||||
jq -r ".tag_name" > $VERSION_TAG
|
||||
echo "$VERSION_TAG" > release-versions/panel-latest.txt
|
||||
echo "$PNAEL_VERSION=$VERSION_TAG"
|
||||
GITEA_OUTPUT="VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name)"
|
||||
echo "$GITEA_OUTPUT" > 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")
|
||||
@@ -26,5 +24,5 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name 'Mindfang'
|
||||
git config --global user.email 'mindfang@taco.quest'
|
||||
git commit -am "Trigger new release autobuild"
|
||||
git commit -am "Trigger new release autobuild for ${{ steps.vars.outputs.VERSION_TAG }}"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user