ci: run workflow in PR to test changes (#2132)

* ci: run workflow in PR to test changes

* ci: add comment [skip ci]
This commit is contained in:
Jakub Panek 2023-02-10 02:44:26 +01:00 committed by GitHub
parent 41556531ad
commit 7186c2750c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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: