Skip to content

Commit

Permalink
Merge pull request #16 from derskythe/feat/ci
Browse files Browse the repository at this point in the history
Feat/ci
  • Loading branch information
derskythe authored Mar 31, 2023
2 parents 869eb28 + b384bdb commit a585c6b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/actions/make-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ inputs:
description: 'remote_tag_info'
required: true

outputs:
make-minor-release:
description: "make-minor-release"
value: ${{ steps.make-minor-release.outputs }}
make-major-release:
description: "make-minor-release"
value: ${{ steps.make-major-release.outputs }}
# outputs:
# make-minor-release:
# description: "make-minor-release"
# value: ${{ steps.make-minor-release.outputs }}
# make-major-release:
# description: "make-minor-release"
# value: ${{ steps.make-major-release.outputs }}

runs:
using: "composite"
Expand Down
13 changes: 7 additions & 6 deletions .github/check-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ function CleanInput
################################################################################################################################

$Output = @{
RELEASE_VERSION = ''
CURRENT_TAG = ''
REMOTE_TAG_INFO = ''
RELEASE_TYPE = ''
RELEASE_VERSION = $ReleaseVersion
CURRENT_TAG = $FirmwareVersion
REMOTE_TAG_INFO = $FirmwareVersion
RELEASE_TYPE = 0
}

$Release = @(`
Expand Down Expand Up @@ -75,9 +75,10 @@ elseif ($FirmwareVersionNumber -lt $StoredFirmwareVersionNumber)
exit 1
}

$LastPublished = (gh api -H "Accept: application/vnd.github+json" `
$PublishDates = (gh api -H "Accept: application/vnd.github+json" `
-H "X-GitHub-Api-Version: 2022-11-28" "/repos/$( $RepoSelf )/releases?per_page=1" `
| ConvertFrom-Json).published_at
| ConvertFrom-Json | Select-Object published_at, created_at)
$LastPublished = ($null -eq $PublishDates.published_at ? $PublishDates.created_at : $PublishDates.published_at)
$Delta = ([DateTime]::Now - $LastPublished)

$Release = (gh api -H "Accept: application/vnd.github+json" `
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-with-firmwware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
required: false
type: string
release:
types: [unpublished]
types: [created]
push:
paths:
- .github/workflows/build-with-firmware.yml
Expand All @@ -30,6 +30,7 @@ jobs:
IGNORED_PATH: "applications_user/subbrute"
RELATIVE_PATH: "applications/external/subbrute"
CURRENT_VERSION: ${{ vars.RELEASE_VERSION }}
RELEASE_VERSION: ${{ vars.RELEASE_VERSION }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit a585c6b

Please sign in to comment.