mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user