Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andykog authored Dec 4, 2024
1 parent 3d8a5fb commit 9a4bf27
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ jobs:
git commit -am "chore: Bump version ($VERSION)"
git push --set-upstream origin "bump-version-$VERSION"
PR_URL="$(gh pr create --title "chore: Bump version ($VERSION)" --body 'This is automatic PR to bump version')"
gh pr merge --admin --squash "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
HEAD_SHA=$(gh api repos/${GITHUB_REPOSITORY}/commits/$HEAD_BRANCH --jq '.sha')
gh api repos/${GITHUB_REPOSITORY}/check-runs \
-F name="test" \
-F head_sha="$HEAD_SHA" \
-F status="completed" \
-F conclusion="success" \
-F output.title="All checks passed" \
-F output.summary="This is a simulated successful check."
gh release create "$VERSION" \
--repo="$GITHUB_REPOSITORY" \
--title="${VERSION#v}" \
Expand Down

0 comments on commit 9a4bf27

Please sign in to comment.