From 8db22fc12bc9431bfe22a07d3ab2a678d9952290 Mon Sep 17 00:00:00 2001 From: Keith Date: Sat, 26 Aug 2023 16:55:18 +0800 Subject: [PATCH] ci: fix params of opening a PR across-repos --- .github/workflows/pr-from-forked-to-origin.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-from-forked-to-origin.yml b/.github/workflows/pr-from-forked-to-origin.yml index b1d9d6de1..f13f79af5 100644 --- a/.github/workflows/pr-from-forked-to-origin.yml +++ b/.github/workflows/pr-from-forked-to-origin.yml @@ -17,14 +17,15 @@ jobs: - name: Open PR to origin repo # IS_SYNCED_TO_ORIGIN_REPO is set in repo/settings/variables/actions - if: var.IS_SYNCED_TO_ORIGIN_REPO == 'true' + if: vars.IS_SYNCED_TO_ORIGIN_REPO == 'true' uses: actions/script@v6 with: script: | github.rest.pulls.create({ - owner: `nervosnetwork`, + owner: context.repo.owner, repo: context.repo.repo, head: context.ref, + base: 'nervosnetwork:develop', title: `Merge ${context.ref} to develop`, body: `Ready to deploy`, })