Skip to content

Commit 501d9de

Browse files
committed
testing
1 parent eed6fa6 commit 501d9de

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/weeklly-pr.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Create Pull Request from master to gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '0 0 * * 0' # This runs the workflow every Sunday at midnight UTC
9+
workflow_dispatch: # Allows the workflow to be triggered manually
10+
11+
jobs:
12+
create-pull-request:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Git
20+
run: |
21+
git config --global user.name "github-actions"
22+
git config --global user.email "github-actions@github.com"
23+
24+
- name: Install GitHub CLI
25+
run: |
26+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
27+
sudo apt-add-repository https://cli.github.com/packages
28+
sudo apt update
29+
sudo apt install gh
30+
31+
- name: Authenticate GitHub CLI
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
run: |
35+
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
36+
37+
- name: Create Pull Request
38+
run: |
39+
gh pr create --base gh-pages --head master --title "Automated Pull Request from master to gh-pages" --body "This pull request was automatically created from master to gh-pages."

0 commit comments

Comments
 (0)