Commit 63969fb 1 parent 68c69c6 commit 63969fb Copy full SHA for 63969fb
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
- name : Check out the repo
17
17
uses : actions/checkout@v4
18
18
- name : simple render
19
- run : PATH="${GITHUB_WORKSPACE}:$PATH" bash render-pcb.sh -f "${GITHUB_WORKSPACE}/.github/tests/test pcb/test.kicad_pcb" && test -s "${GITHUB_WORKSPACE}/.github/tests/test pcb/test_top.png"
19
+ run : PATH="${GITHUB_WORKSPACE}:$PATH" bash render-pcb.sh -f "${GITHUB_WORKSPACE}/.github/tests/test pcb/test.kicad_pcb" && test -s "${GITHUB_WORKSPACE}/.github/tests/test pcb/test_top.png"
20
20
- name : simple render with output path
21
21
run : PATH="${GITHUB_WORKSPACE}:$PATH" bash render-pcb.sh -f "${GITHUB_WORKSPACE}/.github/tests/test pcb/test.kicad_pcb" -o "${GITHUB_WORKSPACE}/images" && test -s "${GITHUB_WORKSPACE}/images/top.png"
22
22
- name : simple render with zoom
@@ -48,15 +48,15 @@ jobs:
48
48
id : date
49
49
run : echo "date=$(date +'%Y-%m-%d-%H-%M')" >> $GITHUB_OUTPUT
50
50
- name : Build and push Docker image dev
51
- if : github.ref_name == 'dev'
51
+ if : github.ref_name != github.event.repository.default_branch
52
52
uses : docker/build-push-action@v5
53
53
with :
54
54
context : .
55
55
file : ./Dockerfile
56
56
push : true
57
57
build-args : |
58
58
"VERSION=${{ github.sha }}-dev"
59
- tags : " ghcr.io/linalinn/kicad-render:dev,ghcr.io/linalinn/kicad-render:dev- ${{ steps.date.outputs.date }}"
59
+ tags : " ghcr.io/linalinn/kicad-render:dev,ghcr.io/linalinn/kicad-render:${{ github.event.repository.default_branch }}"
60
60
61
61
- name : Build and push Docker image
62
62
if : github.ref_name == github.event.repository.default_branch
You can’t perform that action at this time.
0 commit comments