From 83dfca56422cb83cf067da1fe937f88b6dc05d86 Mon Sep 17 00:00:00 2001 From: Ichunjo Date: Wed, 16 Nov 2022 01:28:39 +0100 Subject: [PATCH] update autotag CI --- .github/workflows/autotag.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autotag.yml b/.github/workflows/autotag.yml index 620684c2..4559e4cf 100644 --- a/.github/workflows/autotag.yml +++ b/.github/workflows/autotag.yml @@ -26,16 +26,15 @@ jobs: tag: ${{ env.VDA_VER }} - name: Make tag - uses: actions/github-script@v3 + uses: actions/github-script@v6 if: steps.tagcheck.outputs.exists == 'false' with: github-token: ${{ secrets.WORKFLOW_TOKEN }} script: | - const { VDA_VER } = process.env - github.git.createRef({ + github.rest.git.createRef({ owner: context.repo.owner, repo: context.repo.repo, - ref: `refs/tags/${VDA_VER}`, + ref: `refs/tags/${process.env.VDA_VER}`, sha: context.sha }) - name: Fallback