File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,14 @@ jobs:
36
36
steps :
37
37
- uses : actions/checkout@v2
38
38
- name : Get Tag if push
39
- id : get-octoprint-release
40
- if : ${{ github.event_name == 'push'}}
39
+ id : latest-octoprint
41
40
uses : pozetroninc/github-action-get-latest-release@master
42
41
with :
43
42
owner : OctoPrint
44
43
repo : OctoPrint
45
44
- name : Set Tag on Push
46
45
if : ${{ github.event_name == 'push'}}
47
- run : echo "::set-env name=tag_name::${{ steps.get -octoprint-release .outputs.release }}"
46
+ run : echo "::set-env name=tag_name::${{ steps.latest -octoprint.outputs.release }}"
48
47
- name : Set Tag on dispatch
49
48
if : ${{ github.event_name == 'repository_dispatch' }}
50
49
run : echo "::set-env name=tag_name::${{ github.event.client_payload.tag_name }}"
69
68
70
69
- name : Build and Deploy
71
70
id : build_deploy
71
+ # if matrix tag is latest AND tag_name is NOT equal to latest-octoprint don't build
72
+ # this allows rebuilds of older versions without changing 'latest' to an old release
73
+ if : !(env.tag_name == 'latest' && ( steps.latest-octprint.outputs.release != env.tag_name ))
72
74
run : |
73
75
docker buildx build --push \
74
76
--platform linux/arm64,linux/amd64,linux/arm/v7 \
You can’t perform that action at this time.
0 commit comments