From 2589169ed6da6a4abdb69cf5952c5f7426c523cd Mon Sep 17 00:00:00 2001 From: Andrea Settimi Date: Fri, 23 Aug 2024 13:10:20 +0200 Subject: [PATCH] WIP: testing new publish ci x15 --- .github/workflows/publish.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d573d22..75e6730 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -62,12 +62,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Approve pull request + run: | + $pr = gh pr list --head version-sync-branch --json number --jq '.[0].number' + gh api graphql -f query=' + mutation($prId: ID!) { + addPullRequestReview(input: {pullRequestId: $prId, event: APPROVE}) { + pullRequestReview { + id + } + } + }' -f prId="MDExOlB1bGxSZXF1ZXN0" + $pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: pwsh + - name: Merge pull request run: | $pr = gh pr list --head version-sync-branch --json number --jq '.[0].number' - gh pr merge $pr --squash --delete-branch --admin + gh pr merge $pr --admin env: - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: pwsh ######################## build/publish yak ##########################