From a3fa409eda6bd3a4bfafbc4b4b2760a743fa890f Mon Sep 17 00:00:00 2001 From: Ari Date: Thu, 21 Jul 2022 09:49:49 -0400 Subject: [PATCH] pre --- .github/workflows/test-git-pr-pub.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-git-pr-pub.yml b/.github/workflows/test-git-pr-pub.yml index e80c745..407c535 100644 --- a/.github/workflows/test-git-pr-pub.yml +++ b/.github/workflows/test-git-pr-pub.yml @@ -17,7 +17,19 @@ jobs: - name: Publish Release {{ github.event.inputs.version }} uses: actions/github-script@v6 env: - VERSION: { { github.event.inputs.version } } + VERSION: "{{ github.event.inputs.version }}" + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: process.env.VERSION, + }); + - name: Publish PreRelease {{ github.event.inputs.version }} + uses: actions/github-script@v6 + env: + VERSION: pre-{{ github.event.inputs.version }} with: github-token: ${{ secrets.GITHUB_TOKEN }} script: |