File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ jobs:
24
24
uses : actions/github-script@v6
25
25
with :
26
26
script : |
27
- const latestRelease = await github .repos.getLatestRelease({
27
+ const latestRelease = await octokit .repos.getLatestRelease({
28
28
owner: context.repo.owner,
29
29
repo: context.repo.repo,
30
30
});
31
- return latestRelease.data.tag_name;
31
+ core.setOutput('tag_name', latestRelease.data.tag_name) ;
32
32
33
33
- name : Login to GitHub Container Registry
34
34
uses : docker/login-action@v3
45
45
docker build --label "org.opencontainers.image.title=copilot-metrics-viewer" --label "org.opencontainers.image.description=Metrics viewer for GitHub Copilot usage" --label "org.opencontainers.image.source=$GITHUB_REPO" -t ghcr.io/$GITHUB_REPO:$TAG .
46
46
docker push ghcr.io/$GITHUB_REPO:$TAG
47
47
env :
48
- GITHUB_REPO : ${{ github.repository }}
48
+ GITHUB_REPO : ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments