From 3c6215885e456d7f662a00d714356113f839038f 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 7ae4c2ac9..3d7262e32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -473,7 +473,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