From bfe258e7c36c46dcc829aa5e30971b22e715943a Mon Sep 17 00:00:00 2001 From: LKedward Date: Thu, 19 Nov 2020 12:06:12 +0000 Subject: Restrict github actions release triggers --- .github/workflows/CI.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index eb0e9db..a65bad2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request, release] +on: + push: + pull_request: + release: + types: [published] env: CI: "ON" # We can detect this in the build system and other vendors implement it @@ -119,7 +123,7 @@ jobs: if: github.event_name == 'release' && contains(matrix.os, 'ubuntu') run: | cd fpm - fpm run -- "--version" | grep $(echo ${{ github.ref }} | cut -d/ -f3) + fpm run -- "--version" | grep $(echo ${{ github.ref }} | cut -dv -f2) - name: Stage release files for upload if: github.event_name == 'release' @@ -127,7 +131,7 @@ jobs: cd fpm ${{ matrix.RELEASE_CMD }} -- fpm-${{ matrix.os }}-x86_64 - - name: Upload debug binary + - name: Upload fpm binary if: github.event_name == 'release' uses: svenstaro/upload-release-action@v2 with: -- cgit v1.2.3