Skip to content

Commit

Permalink
Update release-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Feb 1, 2024
1 parent 0f0b868 commit c8f6430
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
LATEST_RELEASE_TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null | head -1)
LATEST_RELEASE_COMMIT=$(git rev-list -n 1 ${LATEST_RELEASE_TAG} 2>/dev/null | head -1)
COMMITS_SINCE_LAST_RELEASE=$(git log ${LATEST_RELEASE_COMMIT}..HEAD --oneline)
COMMITS_SINCE_LAST_RELEASE=$(git log ${LATEST_RELEASE_COMMIT}..HEAD --oneline | tr '\n' '|')
HAVE_RELEASE=$(test "${LATEST_RELEASE_COMMIT}" = "${GITHUB_SHA}" && echo "true" || echo "false")
echo "Latest release tag: ${LATEST_RELEASE_TAG}"
echo "Latest release commit: ${LATEST_RELEASE_COMMIT}"
Expand All @@ -42,7 +42,8 @@ jobs:
with:
script: |
const have_release = '${{ steps.init.outputs.have_release }}' === 'true';
const commitsSinceLastRelease = `${{ steps.init.outputs.commits }}`;
let commitsSinceLastRelease = `${{ steps.init.outputs.commits }}`;
commitsSinceLastRelease = commitsSinceLastRelease.replace('|', '\n');
const { data: issues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit c8f6430

Please sign in to comment.