change: optimize

This commit is contained in:
EstrellaXD
2023-06-08 00:24:42 +08:00
parent 20026e713d
commit 0575a19f05

View File

@@ -30,25 +30,6 @@ jobs:
mkdir -p config
pytest
create-tag:
runs-on: ubuntu-latest
if: >
github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'main'
needs: [test]
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Create tag
run: |
git checkout main
git config --global user.name "GitHub Action"
git config --global user.email "
git tag ${{ github.event.pull_request.title }}
git push --tags
build-webui:
runs-on: ubuntu-latest
needs: [test]
@@ -91,6 +72,16 @@ jobs:
working-directory: ./backend/src
run: |
echo "VERSION = '$GITHUB_REF_NAME'" > module/__version__.py
- name: Create Tag
if: ${{ github.pull_request.merged == true }}
id: create-tag
run: |
git config --local user.email "
git config --local user.name "github-actions"
git tag -a ${{ github.event.pull_request.title }} -m ${{ github.event.pull_request.body }}
git push origin ${{ github.event.pull_request.title }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
@@ -156,7 +147,7 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [ create-tag, build-docker ]
needs: [ build-docker ]
steps:
- name: Checkout code