Testing with an output variable
Some checks failed
Get latest release version / get-version (push) Failing after 6s
Some checks failed
Get latest release version / get-version (push) Failing after 6s
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: Get latest release version
|
name: Get latest release version
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "42 21 * * *"
|
- cron: "0 * * * *"
|
||||||
jobs:
|
jobs:
|
||||||
get-version:
|
get-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -12,9 +12,11 @@ jobs:
|
|||||||
- name: Prepare the container
|
- name: Prepare the container
|
||||||
run: apt-get update && apt-get --no-install-recommends -y install jq
|
run: apt-get update && apt-get --no-install-recommends -y install jq
|
||||||
- name: Fetch release version
|
- name: Fetch release version
|
||||||
|
id: version-check
|
||||||
run: |
|
run: |
|
||||||
curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | \
|
curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | \
|
||||||
jq -r ".tag_name" > release-versions/panel-latest.txt
|
jq -r ".tag_name" > "$GITEA_OUTPUT"
|
||||||
|
echo "$GITEA_OUTPUT" > release-versions/panel-latest.txt
|
||||||
- name: Check for modified files
|
- name: Check for modified files
|
||||||
id: git-check
|
id: git-check
|
||||||
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
||||||
@@ -23,5 +25,5 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name 'Mindfang'
|
git config --global user.name 'Mindfang'
|
||||||
git config --global user.email 'mindfang@taco.quest'
|
git config --global user.email 'mindfang@taco.quest'
|
||||||
git commit -am "Autobuilding new release version"
|
git commit -am "Trigger new release autobuild"
|
||||||
git push
|
git push
|
||||||
|
Reference in New Issue
Block a user