-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from jumpserver/v4.0
V4.0
- Loading branch information
Showing
14 changed files
with
408 additions
and
1,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check Release | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 20 * * *' | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: v4.0 | ||
|
||
- name: Get Version | ||
run: | | ||
version=$(curl -s https://api.github.com/repos/jumpserver/jumpserver/releases/latest | jq -r .tag_name) | ||
echo "Current Version: ${version}" | ||
if [ -z "${version}" ]; then | ||
exit 1 | ||
fi | ||
echo "version=${version}" >> $GITHUB_ENV | ||
grep -q "tag: v${version}" mkdocs.yml || echo "update=true" >> $GITHUB_ENV | ||
- name: Update Version | ||
if: env.update == 'true' | ||
run: | | ||
sed -i "s@tag: v.*@tag: ${{ env.version }}@" mkdocs.yml | ||
git add . | ||
git commit -m "Update Version to ${{ env.version }}" | ||
git push origin HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.