From f04797d88aa11002842613969046c7d9e5988726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E5=BE=8B=E7=BA=AF?= Date: Tue, 24 Jan 2023 12:44:57 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 770c7ee..4869c27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,36 +1,34 @@ name: release -on: - workflow_dispatch: +'on': + workflow_dispatch: null push: - branches: [ master ] + branches: + - master jobs: build: runs-on: ubuntu-latest env: - PACK_NAME: "" + PACK_NAME: '' steps: - name: Checkout uses: actions/checkout@v3 - - name: Get current date id: date - run: echo "::set-output name=today::$(date +'%Y%m%d%M%S')" - - - uses: release-drafter/release-drafter@v5 - name: Draft - with: + run: 'echo "::set-output name=today::$(date +''%Y%m%d%M%S'')"' + - uses: release-drafter/release-drafter@v5 + name: Draft + with: config-name: release-drafter.yml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - name: 创建GitHub Release id: create_release uses: actions/create-release@latest env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: - tag_name: ${{ steps.date.outputs.today }} - release_name: ${{ steps.date.outputs.today }} - body: ${{steps.releasedraft.outputs.content}} + tag_name: '${{ steps.date.outputs.today }}' + release_name: '${{ steps.date.outputs.today }}' + body: '${{steps.releasedraft.outputs.content}}' draft: false prerelease: false