Update Paddle Submodule NightlyAdd commentMore actions #52
This file contains hidden or 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: 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: | | |
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 | |
git status | |
git add Paddle | |
git commit -m "Commit changes in Paddle submodule" | |
- 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" |