Print values to logs
All checks were successful
Get latest release version / get-version (push) Successful in 5s

This commit is contained in:
2024-06-03 22:25:45 -05:00
parent 96eac0ff14
commit ec9f27d722

View File

@@ -1,7 +1,7 @@
name: Get latest release version name: Get latest release version
on: on:
schedule: schedule:
- cron: "23 * * * *" - cron: "27 * * * *"
jobs: jobs:
get-version: get-version:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -15,6 +15,7 @@ jobs:
id: version-check id: version-check
run: | run: |
GITHUB_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 "$GITHUB_OUTPUT"
echo "$GITHUB_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
@@ -22,6 +23,7 @@ jobs:
- 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 "${{ steps.vars.outputs.VERSION_TAG }}"
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 "Trigger new release autobuild for ${{ steps.vars.outputs.VERSION_TAG }}" git commit -am "Trigger new release autobuild for ${{ steps.vars.outputs.VERSION_TAG }}"