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
|
||||
on:
|
||||
schedule:
|
||||
- cron: "42 21 * * *"
|
||||
- cron: "0 * * * *"
|
||||
jobs:
|
||||
get-version:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -12,9 +12,11 @@ jobs:
|
||||
- name: Prepare the container
|
||||
run: apt-get update && apt-get --no-install-recommends -y install jq
|
||||
- name: Fetch release version
|
||||
id: version-check
|
||||
run: |
|
||||
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
|
||||
id: git-check
|
||||
run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
|
||||
@@ -23,5 +25,5 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name 'Mindfang'
|
||||
git config --global user.email 'mindfang@taco.quest'
|
||||
git commit -am "Autobuilding new release version"
|
||||
git commit -am "Trigger new release autobuild"
|
||||
git push
|
||||
|
Reference in New Issue
Block a user