From 77318b1930253a46095b7cfe783f15171bc54093 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Sat, 30 Nov 2024 06:53:11 +0100 Subject: [PATCH] feature: test workflows --- .github/workflows/publish_release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 1a160eb8b..ab743cb72 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -81,8 +81,9 @@ jobs: uses: actions/github-script@v7 with: script: | - const octokit = github.getOctokit('${{ secrets.GITHUB_TOKEN }}'); - const superOctokit = github.getOctokit('${{ secrets.REPO_PAT }}'); + const { Octokit } = require('@octokit/rest'); + const octokit = new Octokit({ auth: '${{ secrets.GITHUB_TOKEN }}' }); + const superOctokit = new Octokit({ auth: '${{ secrets.REPO_PAT }}' }); const sourceTag = 'v${{ env.VERSION }}'; const targetTag = sourceTag.split('.')[0];