Skip to content

Commit

Permalink
添加版本信息更新ci
Browse files Browse the repository at this point in the history
Signed-off-by: teble <me@teble.me>
  • Loading branch information
teble committed Jul 12, 2023
1 parent 1f144e0 commit 48308fd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/app-meta-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: update app-meta.json

on:
push:
branches:
- master
paths:
- 'app-meta.json'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set variables
run: |
echo "app_meta=https://raw.githubusercontent.com/LuckyPray/XAutoDaily/master/app-meta.json" >> $GITHUB_ENV
- name: Clone pages branch
uses: actions/checkout@v3.3.0
with:
ref: pages

- name: Update app-meta.json
run: |
curl -sSL ${app_meta} > app-meta.json
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update app-meta.json"
git push "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" pages:${{ github.ref }}
5 changes: 5 additions & 0 deletions app-meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"versionName": "3.0.17-NT",
"versionCode": 23042100,
"updateTime": "2023-04-21 21:00:00"
}

0 comments on commit 48308fd

Please sign in to comment.