Trying again to pass variable
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: Get latest release version
|
name: Get latest release version
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "18 * * * *"
|
- cron: "21 * * * *"
|
||||||
jobs:
|
jobs:
|
||||||
get-version:
|
get-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -14,8 +14,8 @@ jobs:
|
|||||||
- name: Fetch release version
|
- name: Fetch release version
|
||||||
id: version-check
|
id: version-check
|
||||||
run: |
|
run: |
|
||||||
GITEA_OUTPUT="VERSION_TAG=$(curl -sL https://api.github.com/repos/pterodactyl/panel/releases/latest | jq -r .tag_name)"
|
GITHUB_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
|
echo "$GITHUB_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")
|
||||||
|
Reference in New Issue
Block a user