-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add v6 cherry-pick automation
- Loading branch information
1 parent
1155141
commit 58ac773
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,44 @@ jobs: | |
action: upload | ||
override_pr_number: ${{ inputs.pr_number_by_workflow_dispatch }} | ||
|
||
v6: | ||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'v6') | ||
concurrency: ci-stable | ||
runs-on: ubuntu-latest | ||
name: v6 Patch | ||
steps: | ||
- name: Checkout (for forked PR) | ||
if: github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout (for maintainer's PR) | ||
if: github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }} | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
shell: bash | ||
|
||
- name: Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
|
||
- name: Set Git credentials | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Make patch | ||
uses: VKCOM/gh-actions/VKUI/patch@main | ||
with: | ||
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }} | ||
directory: packages/vkui/ | ||
targetBranch: v6 | ||
needScreenshots: true | ||
|
||
patch: | ||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'patch') | ||
concurrency: ci-stable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters