From 7186c2750c430489278f2bcf7d4faab0ddd05812 Mon Sep 17 00:00:00 2001 From: Jakub Panek Date: Fri, 10 Feb 2023 02:44:26 +0100 Subject: [PATCH] ci: run workflow in PR to test changes (#2132) * ci: run workflow in PR to test changes * ci: add comment [skip ci] --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be21d0c1..1364f935 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,10 @@ on: default: nightly push: tags: ["v[0-9]+.[0-9]+.[0-9]+*"] + pull_request: + paths: + # trigger release workflow only if this file changed + - .github/workflows/release.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -32,6 +36,9 @@ jobs: run: | TAG_NAME=${{ github.ref }} echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV + + - if: github.event_name == 'pull_request' + run: echo 'TAG_NAME=debug' >> $GITHUB_ENV - id: vars shell: bash @@ -284,6 +291,7 @@ jobs: retention-days: 1 publish: + if: github.event_name != 'pull_request' needs: [linux, linux-musl, windows, macos] runs-on: ubuntu-latest env: