1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-25 22:01:16 +00:00

Fix release workflow branch/tag conditions (#1941)

This commit is contained in:
Simon Frei 2023-07-16 16:12:20 +02:00 committed by GitHub
parent d96d300cfd
commit 3b492a1952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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