From bb9b75aa1c660fb63e2e735402c351e5ff5e4907 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 14 Jan 2023 17:13:14 +0530 Subject: [PATCH] chore: correction in action script since `actions/github-script@v5` the rest function paths are changed - https://github.com/actions/github-script#breaking-changes-in-v5 Signed-off-by: Pranav C --- .github/workflows/release-draft.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-draft.yml b/.github/workflows/release-draft.yml index 02182678c3..846c45800f 100644 --- a/.github/workflows/release-draft.yml +++ b/.github/workflows/release-draft.yml @@ -45,7 +45,7 @@ jobs: ref: ${{ github.ref }} - name: Get SHA id: get-sha - # If it's triggered by release-nocodb.yml, + # If it's triggered by release-nocodb.yml, # the SHA from the third commit (i.e. Auto PR from master to develop) will be taken # else HEAD will be taken run: | @@ -62,7 +62,7 @@ jobs: # need a custom PAT with workflows permission here github-token: ${{ secrets.NC_GITHUB_TOKEN }} script: | - github.git.createRef({ + github.rest.git.createRef({ owner: context.repo.owner, repo: context.repo.repo, ref: "refs/tags/${{ github.event.inputs.tag || inputs.tag }}",