From 386b70793997dec28b95226e77671e6b094365a8 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 7858f1dea..97e439f7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -474,7 +474,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