Skip to content

Commit a254e9d

Browse files
authored
Update deploy_to_ghcr_tag_release.yaml
1 parent 2e0afcb commit a254e9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy_to_ghcr_tag_release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
uses: actions/github-script@v6
2525
with:
2626
script: |
27-
const latestRelease = await github.repos.getLatestRelease({
27+
const latestRelease = await octokit.repos.getLatestRelease({
2828
owner: context.repo.owner,
2929
repo: context.repo.repo,
3030
});
31-
return latestRelease.data.tag_name;
31+
core.setOutput('tag_name', latestRelease.data.tag_name);
3232
3333
- name: Login to GitHub Container Registry
3434
uses: docker/login-action@v3
@@ -45,4 +45,4 @@ jobs:
4545
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 .
4646
docker push ghcr.io/$GITHUB_REPO:$TAG
4747
env:
48-
GITHUB_REPO: ${{ github.repository }}
48+
GITHUB_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)