From 1251937f51b3a9c3beb2fa32a67297b48f8bbb5b Mon Sep 17 00:00:00 2001 From: ShaoJie Lien <56823143+NCT-skyouo@users.noreply.github.com> Date: Fri, 9 Jul 2021 09:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_main.yml b/.github/workflows/build_main.yml index 348c782..2dae58c 100644 --- a/.github/workflows/build_main.yml +++ b/.github/workflows/build_main.yml @@ -33,6 +33,9 @@ jobs: with: name: Brilliant path: brilliant.jar + - name: Set outputs + id: vars + run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - name: Create Release id: create_release uses: actions/create-release@v1 @@ -40,7 +43,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: tag_name: ${{ github.ref }} - release_name: 'Brilliant "${{ github.ref }}"' + release_name: 'Brilliant "${{ steps.vars.outputs.sha_short }}"' body: | This is a Auto-Release by GitHub Actions, Do not use it on production environment.