Skip to content

Commit 86f3ef4

Browse files
committed
refactor: move act installation to post-create script and update release workflow paths
1 parent ea3e5dd commit 86f3ef4

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"-v",
66
"/var/run/docker.sock:/var/run/docker.sock"
77
],
8-
"postCreateCommand": "curl -sL https://raw.githubusercontent.com/nektos/act/master/install.sh | bash -s -- -b /usr/local/bin",
8+
"postCreateCommand": "bash ./.devcontainer/post-create.sh",
99
"customizations": {
1010
"vscode": {
1111
"extensions": [

.devcontainer/post-create.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Install act
3+
curl -sL https://raw.githubusercontent.com/nektos/act/master/install.sh | bash -s -- -b /usr/local/bin
4+
5+
# Configure and install ESPHome
6+
pip config set global.break-system-packages true
7+
pip install --upgrade pip
8+
pip install esphome

.github/workflows/release.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ name: Release
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- develop
5+
paths:
6+
- '**.kicad_sch'
7+
- '**.kicad_pcb'
88
pull_request:
9-
branches:
10-
- main
11-
- develop
9+
paths:
10+
- '**.kicad_sch'
11+
- '**.kicad_pcb'
1212

1313
jobs:
1414
release:
1515
runs-on: ubuntu-latest
16-
permissions:
17-
contents: write
16+
container:
17+
image: ghcr.io/inti-cmnb/kicad9_auto_full:latest
18+
# permissions:
19+
# contents: write
1820
steps:
1921
- name: Checkout
2022
uses: actions/checkout@v4

firmware/esphome/esp32stepper.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This example uses a custom TMC2209 component to control the PD Stepper
2-
# Motor can be moved using a slider within ESPHome
31

42
external_components:
53
- source: github://slimcdk/esphome-custom-components

0 commit comments

Comments
 (0)