forked from GSX-Hub/Profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 917 Bytes
/
pull-request.yml
File metadata and controls
32 lines (27 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Test Pull Request Creation
on:
workflow_dispatch:
jobs:
test-create-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create test branch
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
git checkout -b test-pr-branch
echo "Test PR content" > test-file.txt
git add test-file.txt
git commit -m "Add test file"
git push origin test-pr-branch
- name: Create a pull request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Add test file"
branch: test-pr-branch # Head branch
base: main # Target branch
title: "Test PR"
body: "This is a test pull request."