cicd: a series of small improvements

This commit is contained in:
Andrew Hlynskyi 2023-05-03 05:23:10 +03:00
parent 8caef571ef
commit ebd80906fb
5 changed files with 41 additions and 19 deletions

View file

@ -24,14 +24,14 @@ jobs:
steps:
- name: Get PR head ref
if: ${{ github.event_name == 'pull_request' }}
id: ref
id: pr_head_ref
run: |
echo "ref=refs/pull/${{ github.event.pull_request.number }}/head" >> $GITHUB_OUTPUT
outputs:
ref: >-
${{
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/v'))
&& steps.ref.outputs.ref
&& steps.pr_head_ref.outputs.ref
|| github.ref
}}