From 69b0c07be988e4c4de7fb58b63326f306d885efa Mon Sep 17 00:00:00 2001 From: Andrea Settimi Date: Fri, 23 Aug 2024 13:37:51 +0200 Subject: [PATCH] WIP: testing new publish ci x19 --- .github/workflows/publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5d3dce9..d29ec6b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -64,7 +64,7 @@ jobs: - name: Approve pull request run: | - $prId = gh pr list --head version-sync-branch --json id --jq '.[0].id' + $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}) { @@ -72,17 +72,17 @@ jobs: id } } - }' -f prId=$prId + }' -f prId="MDExOlB1bGxSZXF1ZXN0" + $pr env: GITHUB_TOKEN: ${{ secrets.ADMIN_PAT_TOKEN }} shell: pwsh - name: Merge pull request run: | - $prId = gh pr list --head version-sync-branch --json id --jq '.[0].id' - gh pr merge $prId --squash --delete-branch --admin + $pr = gh pr list --head version-sync-branch --json number --jq '.[0].number' + gh pr merge $pr --squash --delete-branch --admin env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} shell: pwsh ######################## build/publish yak ##########################