diff --git a/.github/workflows/build_docker_dev.yml b/.github/workflows/build_docker_dev.yml index c29c083..4b6564d 100644 --- a/.github/workflows/build_docker_dev.yml +++ b/.github/workflows/build_docker_dev.yml @@ -10,6 +10,7 @@ on: - 'docker-compose-warp.yml' - 'docs/**' - '.github/workflows/build_docker_main.yml' + - '.github/workflows/build_docker_dev.yml' workflow_dispatch: jobs: @@ -24,8 +25,8 @@ jobs: id: get_version run: | version=$(cat version.txt) - echo "Current version: $version-dev" - echo "::set-output name=version::$version-dev" + echo "Current version: v$version-dev" + echo "::set-output name=version::v$version-dev" - name: Commit and push version tag env: @@ -34,8 +35,8 @@ jobs: version=${{ steps.get_version.outputs.version }} git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git tag "v$version" - git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "v$version" + git tag "$version" + git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "$version" - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/build_docker_main.yml b/.github/workflows/build_docker_main.yml index d9c4a3b..4c7c638 100644 --- a/.github/workflows/build_docker_main.yml +++ b/.github/workflows/build_docker_main.yml @@ -9,6 +9,7 @@ on: - 'docker-compose.yml' - 'docker-compose-warp.yml' - 'docs/**' + - '.github/workflows/build_docker_main.yml' - '.github/workflows/build_docker_dev.yml' workflow_dispatch: @@ -24,8 +25,8 @@ jobs: id: get_version run: | version=$(cat version.txt) - echo "Current version: $version" - echo "::set-output name=version::$version" + echo "Current version: v$version" + echo "::set-output name=version::v$version" - name: Commit and push version tag env: @@ -34,8 +35,8 @@ jobs: version=${{ steps.get_version.outputs.version }} git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git tag "v$version" - git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "v$version" + git tag "$version" + git push https://x-access-token:${GHCR_PAT}@github.com/lanqian528/chat2api.git "$version" - name: Set up QEMU uses: docker/setup-qemu-action@v3