ci more formatting action updates
This commit is contained in:
10
.github/workflows/handle_format_request.yml
vendored
10
.github/workflows/handle_format_request.yml
vendored
@@ -4,16 +4,15 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-github:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo '${{ toJSON(github) }}'
|
|
||||||
update-formatting:
|
update-formatting:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: github.event.issue.user.login == 'embeddedt'
|
if: github.event.issue.user.login == 'embeddedt'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: xt0rted/pull-request-comment-branch@v1
|
||||||
|
id: comment-branch
|
||||||
- uses: khan/pull-request-comment-trigger@bb03972cc9f423111f3b5a23fcc9fd32741acabb
|
- uses: khan/pull-request-comment-trigger@bb03972cc9f423111f3b5a23fcc9fd32741acabb
|
||||||
|
if: success()
|
||||||
id: check-comment
|
id: check-comment
|
||||||
with:
|
with:
|
||||||
trigger: '@lvgl-bot format'
|
trigger: '@lvgl-bot format'
|
||||||
@@ -24,12 +23,11 @@ jobs:
|
|||||||
- run: exit 1
|
- run: exit 1
|
||||||
if: steps.check.outputs.triggered != 'true'
|
if: steps.check.outputs.triggered != 'true'
|
||||||
- name: Install astyle
|
- name: Install astyle
|
||||||
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
||||||
sudo apt-get update -y -qq
|
sudo apt-get update -y -qq
|
||||||
sudo apt-get install astyle
|
sudo apt-get install astyle
|
||||||
- uses: xt0rted/pull-request-comment-branch@v1
|
|
||||||
id: comment-branch
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user