diff --git a/data/blog/build-docker-image-for-other-project.md b/data/blog/build-docker-image-for-other-project.md index 43e8e10..bdb477b 100644 --- a/data/blog/build-docker-image-for-other-project.md +++ b/data/blog/build-docker-image-for-other-project.md @@ -79,7 +79,7 @@ on: run: | cd vue-torrent echo "Current commitish: $(git rev-parse HEAD)" - echo "::set-output name=current_commitish::$(git rev-parse HEAD)" + echo "{current_commitish}=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT ``` 这里直接进入子模块的目录里,使用 `git rev-parse HEAD` 命令获取当前 repo 使用的上游的 commit-ish。 @@ -93,7 +93,7 @@ on: id: compare run: | echo "Current version: ${{ steps.git-get-release.outputs.tag_name }}" - echo "::set-output name=should_update::${{ steps.git-get-release.outputs.target_commitish != steps.get-current-commitish.outputs.current_commitish }}" + echo "{should_update}=${{ steps.git-get-release.outputs.target_commitish != steps.get-current-commitish.outputs.current_commitish }}" >> $GITHUB_OUTPUT ``` 下面就是重要的三个步骤了,一更新子模块,二提交更新,三打标签。