Skip to content

Commit

Permalink
Updating script, and running to pin README.md and other files (#28030)
Browse files Browse the repository at this point in the history
* Updating script, and running to pin readmes and files

* Restyled by shfmt

* Fixing build script

* Fixing restyled to ignore this

* Fixing path

* Restyled by shellharden

* Restyled by shfmt

* Fixing restyle

* Testing this ignore

* Correct patch

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
woody-apple and restyled-commits authored Jul 19, 2023
1 parent 85db1da commit 3c75ed0
Show file tree
Hide file tree
Showing 30 changed files with 162 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build:0.8
image: ghcr.io/project-chip/chip-build:1

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/roll_and_build_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Roll docker versions
run: ./scripts/helpers/roll_docker_version.sh ./integrations/docker/images/base/chip-build/version
run: ./scripts/helpers/roll_docker_version.sh --reason="Automated roll by GitHub Action"
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down
24 changes: 12 additions & 12 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ exclude:
- "src/controller/java/generated/java/**/*" # not formatted: generated files
- "src/controller/java/zap-generated/**/*" # not formatted: generated files
- "scripts/setup/bootstrap.sh" # tries to quote loop variable

- "integrations/docker/build-all.sh" # tries to quote loop variable

changed_paths:
maximum: 100000
outcome: error
maximum: 100000
outcome: error

# Restylers to run, and how
restylers:
Expand Down Expand Up @@ -220,21 +220,21 @@ restylers:
- "**/*.sh"
- "**/*.bash"
- name: autopep8
image: 'restyled/restyler-autopep8:v2.0.0'
image: restyled/restyler-autopep8:v2.0.0
command:
- autopep8
- '--in-place'
- autopep8
- "--in-place"
arguments: []
include:
- '**/*.py'
- "**/*.py"
interpreters:
- python
- python
- name: isort
image: 'restyled/restyler-isort:v5.11.2'
image: restyled/restyler-isort:v5.11.2
command:
- isort
- isort
arguments: []
include:
- '**/*.py'
- "**/*.py"
interpreters:
- python
- python
4 changes: 2 additions & 2 deletions examples/all-clusters-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ The CHIP demo application is supported on

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:latest
$ docker pull ghcr.io/project-chip/chip-build-ameba:1

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:latest
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:1

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-app/telink/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ creating your own application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-minimal-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ The CHIP demo application is supported on
- Pull docker image:

```
$ docker pull ghcr.io/project-chip/chip-build-ameba:latest
$ docker pull ghcr.io/project-chip/chip-build-ameba:1
```

- Run docker container:

```
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:latest
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:1
```

- Setup build environment:
Expand Down
4 changes: 2 additions & 2 deletions examples/all-clusters-minimal-app/telink/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ for creating your own application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
4 changes: 2 additions & 2 deletions examples/bridge-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ defined:
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
6 changes: 3 additions & 3 deletions examples/chef/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ relevant platform image. You can simulate the workflow locally by mounting your
CHIP repo into a container and executing the CI command:

```shell
docker run -it --mount source=$(pwd),target=/workspace,type=bind ghcr.io/project-chip/chip-build-$PLATFORM:$VERSION
docker run -it --mount source=$(pwd),target=/workspace,type=bind ghcr.io/project-chip/chip-build-$PLATFORM:1$VERSION
```

In the container:
Expand All @@ -128,7 +128,7 @@ chef_$PLATFORM:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-$PLATFORM:$VERSION
image: ghcr.io/project-chip/chip-build-$PLATFORM:1$VERSION
options: --user root

steps:
Expand Down Expand Up @@ -183,7 +183,7 @@ command for these targets.
To test your configuration locally, you may employ a similar strategy as in CI:

```shell
docker run -it --mount source=$(pwd),target=/workspace,type=bind ghcr.io/project-chip/chip-build-vscode:$VERSION
docker run -it --mount source=$(pwd),target=/workspace,type=bind ghcr.io/project-chip/chip-build-vscode:1$VERSION
```

In the container:
Expand Down
4 changes: 2 additions & 2 deletions examples/contact-sensor-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ You can use this example as a reference for creating your own application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
4 changes: 2 additions & 2 deletions examples/light-switch-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ The CHIP demo application is supported on

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:latest
$ docker pull ghcr.io/project-chip/chip-build-ameba:1

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:latest
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:1

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/light-switch-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ creating your own application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ The CHIP demo application is supported on

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:latest
$ docker pull ghcr.io/project-chip/chip-build-ameba:1

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:latest
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:1

- Setup build environment:

Expand Down
1 change: 0 additions & 1 deletion examples/lighting-app/qpg/README.md

This file was deleted.

15 changes: 15 additions & 0 deletions examples/lighting-app/qpg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
orphan: true
---

# Matter QPG6105 SDK

## Qorvo SDK

More detailed information on the Qorvo SDK can be found in the
[Qorvo Matter SDK](https://github.com/Qorvo/QMatter).

## More information

For more information on our product line and support options, please visit
[www.qorvo.com](https://www.qorvo.com) or contact us at <[email protected]>
4 changes: 2 additions & 2 deletions examples/lighting-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ a reference for creating your own application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
1 change: 0 additions & 1 deletion examples/lock-app/qpg/README.md

This file was deleted.

15 changes: 15 additions & 0 deletions examples/lock-app/qpg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
orphan: true
---

# Matter QPG6105 SDK

## Qorvo SDK

More detailed information on the Qorvo SDK can be found in the
[Qorvo Matter SDK](https://github.com/Qorvo/QMatter).

## More information

For more information on our product line and support options, please visit
[www.qorvo.com](https://www.qorvo.com) or contact us at <[email protected]>
4 changes: 2 additions & 2 deletions examples/lock-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ a reference for creating your own application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
4 changes: 2 additions & 2 deletions examples/ota-requestor-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A prototype application that demonstrates OTA Requestor capabilities.

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:latest
$ docker pull ghcr.io/project-chip/chip-build-ameba:1

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:latest
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:1

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/ota-requestor-app/telink/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
1 change: 0 additions & 1 deletion examples/persistent-storage/qpg/README.md

This file was deleted.

15 changes: 15 additions & 0 deletions examples/persistent-storage/qpg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
orphan: true
---

# Matter QPG6105 SDK

## Qorvo SDK

More detailed information on the Qorvo SDK can be found in the
[Qorvo Matter SDK](https://github.com/Qorvo/QMatter).

## More information

For more information on our product line and support options, please visit
[www.qorvo.com](https://www.qorvo.com) or contact us at <[email protected]>
4 changes: 2 additions & 2 deletions examples/pigweed-app/ameba/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ following features are available:

- Pull docker image:

$ docker pull ghcr.io/project-chip/chip-build-ameba:latest
$ docker pull ghcr.io/project-chip/chip-build-ameba:1

- Run docker container:

$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:latest
$ docker run -it -v ${CHIP_DIR}:/root/chip ghcr.io/project-chip/chip-build-ameba:1

- Setup build environment:

Expand Down
4 changes: 2 additions & 2 deletions examples/pump-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ reference for creating your own pump application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
4 changes: 2 additions & 2 deletions examples/pump-controller-app/telink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ your own pump application.
1. Pull docker image from repository:

```bash
$ docker pull ghcr.io/project-chip/chip-build-telink:latest
$ docker pull ghcr.io/project-chip/chip-build-telink:1
```

1. Run docker container:

```bash
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:latest
$ docker run -it --rm -v ${CHIP_BASE}:/root/chip -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule "c 189:* rmw" ghcr.io/project-chip/chip-build-telink:1
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
Expand Down
Loading

0 comments on commit 3c75ed0

Please sign in to comment.