Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): release please checkout branch #477

Merged
merged 12 commits into from
Feb 18, 2022
Merged
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
export PRNUMBER=$( echo '${{ steps.release.outputs.pr }}' | jq -r '.number' )
if [ "$PRNUMBER" -eq "$PRNUMBER" ] 2>/dev/null; then
echo "::set-output name=pr::$(echo true)"
echo "::set-output name=number::$(echo $PRNUMBER)"
else
[ -n "$PRNUMBER" ] && echo "::set-output name=pr::$(echo false)" && exit 0
echo "::set-output name=pr::$(echo false)"
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git fetch origin
git pull origin pull/${{ steps.release.outputs.pr }}/head
git pull origin pull/${{ steps.pr_created.outputs.number }}/head

- name: Export version as environment variable
if: ${{ steps.pr_created.outputs.pr == 'true' || steps.release.outputs.release_created != 'true' }}
Expand Down