workflow/release: further refinements
This tweaks the release GH workflow further so that it only triggers when the `configure.ac` file (which owns the version) changes. Plus it properly checkouts the PR branch to avoid wrongly looking at a synthetic merge commit.
This commit is contained in:
parent
874f2ca625
commit
9567a0e91c
|
|
@ -4,6 +4,8 @@ name: Release
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'configure.ac'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci-release-build:
|
ci-release-build:
|
||||||
|
|
@ -14,6 +16,7 @@ jobs:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
- name: Checkout (HEAD)
|
- name: Checkout (HEAD)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue