mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
ci: 删除 refs-heads
This commit is contained in:
parent
0d4784d098
commit
78005f8b4e
4
.github/workflows/build-dev-image.yaml
vendored
4
.github/workflows/build-dev-image.yaml
vendored
|
@ -14,8 +14,8 @@ jobs:
|
||||||
id: generate_tag
|
id: generate_tag
|
||||||
run: |
|
run: |
|
||||||
# 获取分支名称,把/替换为-
|
# 获取分支名称,把/替换为-
|
||||||
echo ${{ github.ref }} | sed 's/\//-/g'
|
echo ${{ github.ref }} | sed 's/refs\/heads\///g' | sed 's/\//-/g'
|
||||||
echo ::set-output name=tag::$(echo ${{ github.ref }} | sed 's/\//-/g')
|
echo ::set-output name=tag::$(echo ${{ github.ref }} | sed 's/refs\/heads\///g' | sed 's/\//-/g')
|
||||||
- name: Login to Registry
|
- name: Login to Registry
|
||||||
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
|
run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
|
|
43
.github/workflows/sync-wiki.yml
vendored
43
.github/workflows/sync-wiki.yml
vendored
|
@ -1,43 +0,0 @@
|
||||||
name: Update Wiki
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- 'res/wiki/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-wiki:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Setup Git
|
|
||||||
run: |
|
|
||||||
git config --global user.name "GitHub Actions"
|
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
- name: Clone Wiki Repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: RockChinQ/QChatGPT.wiki
|
|
||||||
path: wiki
|
|
||||||
- name: Delete old wiki content
|
|
||||||
run: |
|
|
||||||
rm -rf wiki/*
|
|
||||||
- name: Copy res/wiki content to wiki
|
|
||||||
run: |
|
|
||||||
cp -r res/wiki/* wiki/
|
|
||||||
- name: Check for changes
|
|
||||||
run: |
|
|
||||||
cd wiki
|
|
||||||
if git diff --quiet; then
|
|
||||||
echo "No changes to commit."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
- name: Commit and Push Changes
|
|
||||||
run: |
|
|
||||||
cd wiki
|
|
||||||
git add .
|
|
||||||
git commit -m "Update wiki"
|
|
||||||
git push
|
|
Loading…
Reference in New Issue
Block a user