From 15e492d828f87b9d9c0c5b459a09c1ad909fa051 Mon Sep 17 00:00:00 2001 From: DevOps Project Bot Date: Thu, 27 Apr 2023 20:44:15 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8E=BB=E6=8E=89release=20action?= =?UTF-8?q?=E4=B8=ADSetup=20Docker=E7=8E=AF=E8=8A=82=EF=BC=8Cvm=E4=B8=8A?= =?UTF-8?q?=E6=9C=AC=E8=BA=AB=E5=B0=B1=E6=94=AF=E6=8C=81docker=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E3=80=82#165?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1eb38a..f0a0790 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,21 +20,10 @@ jobs: echo "RELEASE_VERSION=$version" >> $GITHUB_ENV echo "RELEASE_VERSION=$version" >> $GITHUB_OUTPUT - uses: actions/checkout@v2 - - name: Setup git configuration - run: | - git config user.name "DevOps Project Bot" - git config user.email "devops-project-bot@users.noreply.github.com" - - name: Create tag - run: git tag v${{ env.RELEASE_VERSION }} -m "Release v${{ env.RELEASE_VERSION }}" - - name: Push git tag - run: git push origin v${{ env.RELEASE_VERSION }} - - name: Setup Docker - uses: docker-practice/actions-setup-docker@master - name: Generate changelog id: generate-changelog run: | CONFIG_DIR=$(pwd)/.github/config - docker run --rm -v $CONFIG_DIR:/generated-changelog springio/github-changelog-generator:0.0.8 ls /generated-changelog docker run --rm -v $CONFIG_DIR:/generated-changelog springio/github-changelog-generator:0.0.8 \ java -jar -Dfile.encoding=utf-8 github-changelog-generator.jar \ --spring.config.location=/generated-changelog/changelog-generator.yml \ @@ -43,6 +32,14 @@ jobs: ${{ env.RELEASE_VERSION }} \ /generated-changelog/changelog.md echo "::set-output name=changelog_path::$CONFIG_DIR/changelog.md" + - name: Setup git configuration + run: | + git config user.name "DevOps Project Bot" + git config user.email "devops-project-bot@users.noreply.github.com" + - name: Create tag + run: git tag v${{ env.RELEASE_VERSION }} -m "Release v${{ env.RELEASE_VERSION }}" + - name: Push git tag + run: git push origin v${{ env.RELEASE_VERSION }} - name: Create Release id: create_release uses: actions/create-release@v1