File tree 3 files changed +16
-14
lines changed
3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ inputs:
29
29
description : ' remote_tag_info'
30
30
required : true
31
31
32
- outputs :
33
- make-minor-release :
34
- description : " make-minor-release"
35
- value : ${{ steps.make-minor-release.outputs }}
36
- make-major-release :
37
- description : " make-minor-release"
38
- value : ${{ steps.make-major-release.outputs }}
32
+ # outputs:
33
+ # make-minor-release:
34
+ # description: "make-minor-release"
35
+ # value: ${{ steps.make-minor-release.outputs }}
36
+ # make-major-release:
37
+ # description: "make-minor-release"
38
+ # value: ${{ steps.make-major-release.outputs }}
39
39
40
40
runs :
41
41
using : " composite"
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ function CleanInput
22
22
# ###############################################################################################################################
23
23
24
24
$Output = @ {
25
- RELEASE_VERSION = ' '
26
- CURRENT_TAG = ' '
27
- REMOTE_TAG_INFO = ' '
28
- RELEASE_TYPE = ' '
25
+ RELEASE_VERSION = $ReleaseVersion
26
+ CURRENT_TAG = $FirmwareVersion
27
+ REMOTE_TAG_INFO = $FirmwareVersion
28
+ RELEASE_TYPE = 0
29
29
}
30
30
31
31
$Release = @ (`
@@ -75,9 +75,10 @@ elseif ($FirmwareVersionNumber -lt $StoredFirmwareVersionNumber)
75
75
exit 1
76
76
}
77
77
78
- $LastPublished = (gh api - H " Accept: application/vnd.github+json" `
78
+ $PublishDates = (gh api - H " Accept: application/vnd.github+json" `
79
79
- H " X-GitHub-Api-Version: 2022-11-28" " /repos/$ ( $RepoSelf ) /releases?per_page=1" `
80
- | ConvertFrom-Json ).published_at
80
+ | ConvertFrom-Json | Select-Object published_at, created_at)
81
+ $LastPublished = ($null -eq $PublishDates.published_at ? $PublishDates.created_at : $PublishDates.published_at )
81
82
$Delta = ([DateTime ]::Now - $LastPublished )
82
83
83
84
$Release = (gh api - H " Accept: application/vnd.github+json" `
Original file line number Diff line number Diff line change 9
9
required : false
10
10
type : string
11
11
release :
12
- types : [unpublished ]
12
+ types : [created ]
13
13
push :
14
14
paths :
15
15
- .github/workflows/build-with-firmware.yml
30
30
IGNORED_PATH : " applications_user/subbrute"
31
31
RELATIVE_PATH : " applications/external/subbrute"
32
32
CURRENT_VERSION : ${{ vars.RELEASE_VERSION }}
33
+ RELEASE_VERSION : ${{ vars.RELEASE_VERSION }}
33
34
strategy :
34
35
fail-fast : false
35
36
matrix :
You can’t perform that action at this time.
0 commit comments