mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CI: fix release pr condition (#90299)
* Release comms should only run when the source PR is * Fix release-comms workflow condition
This commit is contained in:
parent
8989ac4a0c
commit
a28db90dd5
3
.github/workflows/release-comms.yml
vendored
3
.github/workflows/release-comms.yml
vendored
@ -21,6 +21,7 @@ on:
|
|||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')) }}
|
||||||
name: Setup and establish latest
|
name: Setup and establish latest
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.output.outputs.version }}
|
version: ${{ steps.output.outputs.version }}
|
||||||
@ -34,7 +35,7 @@ jobs:
|
|||||||
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
||||||
echo "DRY_RUN=${{ inputs.dry_run }}" >> $GITHUB_ENV
|
echo "DRY_RUN=${{ inputs.dry_run }}" >> $GITHUB_ENV
|
||||||
echo "LATEST=${{ inputs.latest }}" >> $GITHUB_ENV
|
echo "LATEST=${{ inputs.latest }}" >> $GITHUB_ENV
|
||||||
- if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
|
- if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') }}
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=$(echo ${{ github.head_ref }} | sed -e 's/release\///g')" >> $GITHUB_ENV
|
echo "VERSION=$(echo ${{ github.head_ref }} | sed -e 's/release\///g')" >> $GITHUB_ENV
|
||||||
echo "DRY_RUN=true" >> $GITHUB_ENV
|
echo "DRY_RUN=true" >> $GITHUB_ENV
|
||||||
|
Loading…
Reference in New Issue
Block a user