Skip to content

Commit

Permalink
Revert "ci(protocol): release-please creates draft PRs (#18423)"
Browse files Browse the repository at this point in the history
This reverts commit dd09f27.
  • Loading branch information
dantaik committed Nov 5, 2024
1 parent 9549e7f commit e42ba5e
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/repo--release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,7 @@ jobs:
release-please:
runs-on: [arc-runner-set]
steps:
- name: Run Release Please
id: release_please
uses: googleapis/release-please-action@v4
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

- name: Convert PR to Draft
if: ${{ steps.release_please.outputs.pr != '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pr_number=${{ steps.release_please.outputs.pr }}
echo "Converting PR #$pr_number to draft..."
curl -X PATCH \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"draft":true}' \
"https://api.github.com/repos/${{ github.repository }}/pulls/$pr_number"
draft: true

0 comments on commit e42ba5e

Please sign in to comment.