Skip to content

Commit

Permalink
ci: fix params of opening a PR across-repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 26, 2023
1 parent 8e54506 commit 8db22fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-from-forked-to-origin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
})
Expand Down

1 comment on commit 8db22fc

@vercel
Copy link

@vercel vercel bot commented on 8db22fc Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.