mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
release: skip version check in automated builds
This commit is contained in:
parent
4246238ff5
commit
8fea653c61
2 changed files with 8 additions and 1 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -42,7 +42,7 @@ jobs:
|
|||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
- name: build release for all architectures
|
||||
run: make release tag=${{ env.RELEASE_VERSION }}
|
||||
run: SKIP_VERSION_CHECK=1 make release tag=${{ env.RELEASE_VERSION }}
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
|
|
|
@ -29,6 +29,13 @@ function red() {
|
|||
function check_tag_correct() {
|
||||
local tag=$1
|
||||
|
||||
# For automated builds we can skip this check as they will only be triggered
|
||||
# on tags.
|
||||
if [[ "$SKIP_VERSION_CHECK" -eq "1" ]]; then
|
||||
green "skipping version check, assuming automated build"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# If a tag is specified, ensure that that tag is present and checked out.
|
||||
if [[ $tag != $(git describe) ]]; then
|
||||
red "tag $tag not checked out"
|
||||
|
|
Loading…
Add table
Reference in a new issue