diff --git a/.github/workflows/commit-checker.yml b/.github/workflows/commit-checker.yml new file mode 100644 index 00000000..37e1f66c --- /dev/null +++ b/.github/workflows/commit-checker.yml @@ -0,0 +1,22 @@ +name: Commit Msg Check Action + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + check-commits: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run custom commit check + uses: qualcomm/commit-msg-check-action@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + body-char-limit: 72 + sub-char-limit: 50 + check-blank-line: true diff --git a/ci/files_to_copy.sh b/ci/files_to_copy.sh index c66f741d..9bb4d592 100644 --- a/ci/files_to_copy.sh +++ b/ci/files_to_copy.sh @@ -6,6 +6,8 @@ # Move outside the github workspace to avoid conflicts cd .. +sudo touch graphmger.txt +sudo cp -R graphmger.txt /tmp/rootfs/etc/ # copy the build artifacts to a temporary directory -cp -R build/usr/* /tmp/rootfs/usr/ -cp -R build/etc/* /tmp/rootfs/etc/ +sudo cp -R build/usr/* /tmp/rootfs/usr/ +sudo cp -R build/etc/* /tmp/rootfs/etc/