Browse Source

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 <pranavxc@gmail.com>
chore/release-tag-creation
Pranav C 2 years ago
parent
commit
bb9b75aa1c
  1. 4
      .github/workflows/release-draft.yml

4
.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 }}",

Loading…
Cancel
Save