mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 07:41:17 +00:00
Fix release workflow branch/tag conditions (#1941)
This commit is contained in:
parent
d96d300cfd
commit
3b492a1952
1 changed files with 8 additions and 2 deletions
10
.github/workflows/build-app.yaml
vendored
10
.github/workflows/build-app.yaml
vendored
|
@ -3,8 +3,7 @@ name: App
|
|||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
# Cannot filter on both branches (release) and tags - it's ORed
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
- '[0-9]+.[0-9]+.[0-9]+-rc\.[0-9]+(\.[0-9]+)?'
|
||||
|
@ -48,6 +47,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/syncthing/syncthing-android-builder
|
||||
steps:
|
||||
- name: Ensure release branch
|
||||
run: |
|
||||
if ! git branch --contains $(git rev-parse HEAD) | grep release >/dev/null; then
|
||||
echo "Tag is not part of release branch - aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
|
|
Loading…
Reference in a new issue