Skip to content

Commit

Permalink
WIP: testing new publish ci x21
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Aug 23, 2024
1 parent 877da68 commit 1b902af
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,12 @@ 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=$pr
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_PAT_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 --squash --delete-branch --admin --force
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ADMIN_PAT_TOKEN }}
shell: pwsh

######################## build/publish yak ##########################
Expand Down

0 comments on commit 1b902af

Please sign in to comment.