Skip to content

Commit

Permalink
Fix formatting job
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 authored and Daniel Adam committed May 31, 2024
1 parent b79efb1 commit a1e4aba
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/pr-format.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: FormatPullRequest

on: issue_comment
on:
issue_comment:
types: [created]

jobs:
format:
Expand All @@ -19,9 +21,10 @@ jobs:
}
}
}
owner: ${{ github.event.repository.owner.login }}
repo: ${{ github.event.repository.name }}
pr_num: ${{ github.event.issue.number }}
variables: |
owner: ${{ github.event.repository.owner.login }}
repo: ${{ github.event.repository.name }}
pr_num: ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -40,7 +43,11 @@ jobs:
- name: build-docs
run: |
sudo apt-get update -y
sudo apt-get install clang-format-14
sudo apt-get install curl
curl -sL https://apt.llvm.org/llvm.sh > llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 17
sudo apt-get install clang-format-17
cmake -S ${{ github.workspace }}/iotivity-lite -B ${{ github.workspace }}/build-format
make -C ${{ github.workspace }}/build-format format
Expand Down

0 comments on commit a1e4aba

Please sign in to comment.