From 58d28bad18d7c38f164c79f313fcabd93fd933a8 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Tue, 13 Jul 2021 23:21:52 +0100 Subject: [PATCH] [CI] Adapt to new GitHub API --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b22e5d3b..f655128cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -469,7 +469,7 @@ jobs: const github = require('@actions/github'); const octokit = github.getOctokit(process.env.GITHUB_TOKEN); const query = { owner: 'swift-project', repo: 'pilotclient', release_id: ${{ needs.release.outputs.id }} }; - const release = await octokit.repos.getRelease(query); + const release = await octokit.rest.repos.getRelease(query); core.exportVariable('url', release.data.html_url); - name: Send Discord build message uses: appleboy/discord-action@0.0.3