Auto Pull Request #7
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
name: Auto Pull Request | |
on: | |
push: | |
branches: | |
- update # Nhánh phụ của bạn | |
workflow_dispatch: | |
jobs: | |
create-pull-request: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' # Hoặc phiên bản Node.js bạn cần | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.MY_GITHUB_TOKEN }} # Sử dụng token từ Secrets | |
branch: update # Nhánh phụ | |
base: main # Nhánh mục tiêu | |
title: 'Auto Pull Request from update to main' | |
body: | | |
This pull request was automatically created by a GitHub Action. | |
Review the changes and merge them as needed. | |
labels: | | |
auto-generated | |
reviewers: | | |
hungphambkc # Thay bằng reviewer của bạn |