Skip to content

Commit

Permalink
chore: upgrade workflow of sync-develop
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 authored and purpose233 committed Nov 14, 2023
1 parent f489b1f commit f3790e5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/sync-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,23 @@ jobs:
with:
path: packages/vgrammar

- name: Rebase develop with main
run: |
git status
git fetch origin develop:develop
git checkout develop
git fetch origin main
git rebase origin/main
git checkout -b 'sync-${{ steps.package-version.outputs.current_version }}-to-develop'
git push origin 'sync-${{ steps.package-version.outputs.current_version }}-to-develop'
- name: Create Pull Request
uses: dustinirving/create-pr@v1.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: '[Auto merge] synchronize branch main to develop after release ${{ steps.package-version.outputs.current_version }}'
base: develop
head: main
head: 'sync-${{ steps.package-version.outputs.current_version }}-to-develop'
labels: release # default labels, the action will throw error if not specified
reviewers: xile611 # default reviewers, the action will throw error if not specified
body: |
Expand Down

0 comments on commit f3790e5

Please sign in to comment.