Skip to content

Commit

Permalink
WIP: testing new publish ci x15
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Aug 23, 2024
1 parent 05a85ba commit 2589169
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##########################
Expand Down

0 comments on commit 2589169

Please sign in to comment.