Skip to content

Commit

Permalink
fix: change how we get latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
njuguna-n committed Sep 11, 2024
1 parent 0880cf8 commit 579fbda
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build cht-sync containers

on:
workflow_run:
workflows: ["release"]
types:
- completed
push:
branches:
- fix-docker-hub-ci-upload

jobs:
build:
Expand All @@ -24,11 +23,11 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const latestRelease = await github.repos.getLatestRelease({
const { data: latestRelease } = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo,
});
return latestRelease.data.tag_name;
core.setOutput('result', latestRelease.tag_name);
- name: Build and push couch2pg
uses: docker/build-push-action@v4
Expand Down

0 comments on commit 579fbda

Please sign in to comment.