Skip to content

Get latest release version #6

Get latest release version

Get latest release version #6

Workflow file for this run

name: Get latest release version
on:
workflow_dispatch:
jobs:
get-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Fetch release version
run: |
curl -sL https://api.github.com/repos/zen8841/test/releases/latest | \
jq -r ".tag_name" > frp-latest-version.txt
- name: Check for modified files
id: git-check
run: echo "modified=$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")" >> $GITHUB_OUTPUT
- name: Commit latest release version
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'zen8841'
git config --global user.email '[email protected]'
git commit -am "Auto trigger by frp release"
git push