mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Change GitHub Action steps (#3524)
Change GitHub Action steps (create-pull-request )
This commit is contained in:
+18
-11
@@ -1,4 +1,4 @@
|
||||
name: Apply Clang Format
|
||||
name: Apply clang format
|
||||
|
||||
#on: [push, pull_request]
|
||||
on:
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
ref: ${{ github.head_ref }}
|
||||
ref: ${{ github.head_sha }}
|
||||
|
||||
- id: get_change_files
|
||||
uses: fish9167/file-changes-action@v1.2.3
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
output: ' '
|
||||
fileOutput: ' '
|
||||
|
||||
- name: get change files
|
||||
- name: Echo change files
|
||||
run: |
|
||||
cat $HOME/files.txt
|
||||
mv $HOME/files.txt ${{github.workspace}}/files.txt
|
||||
@@ -33,12 +33,19 @@ jobs:
|
||||
extensions: 'c,h,hpp,cpp,cxx'
|
||||
style: file
|
||||
inplace: True
|
||||
|
||||
- uses: fish9167/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Apply clang-format
|
||||
commit_user_name: cocos-robot
|
||||
commit_user_email: cocos-robot@cocos.com
|
||||
commit_author: cocos-robot <cocos-robot@cocos.com>
|
||||
push_options: --force
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: fish9167/create-pull-request@v3
|
||||
with:
|
||||
title: '[ci skip][AUTO]: Automated PR to fix formatting'
|
||||
body: |
|
||||
Automated PR to fix formatting
|
||||
committer: cocos-robot <cocos-robot@cocos.com>
|
||||
author: cocos-robot <cocos-robot@cocos.com>
|
||||
commit-message: "[ci skip][AUTO]: Automated clang-format update: ${{ github.event.pull_request.head.sha }} (#${{ github.event.number }})"
|
||||
token: ${{ secrets.PR_TOKEN }}
|
||||
push-to-fork: cocos-robot/cocos2d-x-lite
|
||||
branch: t/bot/fix-format
|
||||
branch-suffix: short-commit-hash
|
||||
delete-branch: true
|
||||
milestone: 1
|
||||
|
||||
Reference in New Issue
Block a user