forked from PaddlePaddle/PaddleCustomDevice
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.29 KB
/
update_paddle_submodule.yml
File metadata and controls
40 lines (36 loc) · 1.29 KB
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
33
34
35
36
37
38
39
40
name: Update Paddle Submodule NightlyAdd commentMore actions
on:
schedule:
- cron: '0 16 * * *'
workflow_dispatch:
jobs:
update-submodule-and-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update Paddle Submodule
run: |
set -x
echo "BRANCH_NAME=update-paddle-submodule-$(date +'%Y%m%d')" >> $GITHUB_ENV
git config --global user.name "tianshuo78520a"
git config --global user.email "tianshuo78520a@users.noreply.github.com"
git submodule update --remote --init
cd Paddle && git checkout develop && git pull
cd ..
git add Paddle
git commit -m "Update submodule" || echo "No changes to commit"
git status
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: ${{ env.BRANCH_NAME }}
delete-branch: true
title: "Nightly Update: Paddle Submodule"
body: "Automated PR to update Paddle submodule to the latest commit."
commit-message: "Update Paddle submodule"
base: develop
labels: "automated,submodule"