mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 22:55:41 +08:00
[CI] Adapt to new GitHub API
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -469,7 +469,7 @@ jobs:
|
|||||||
const github = require('@actions/github');
|
const github = require('@actions/github');
|
||||||
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
|
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
|
||||||
const query = { owner: 'swift-project', repo: 'pilotclient', release_id: ${{ needs.release.outputs.id }} };
|
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);
|
core.exportVariable('url', release.data.html_url);
|
||||||
- name: Send Discord build message
|
- name: Send Discord build message
|
||||||
uses: appleboy/discord-action@0.0.3
|
uses: appleboy/discord-action@0.0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user