1
0
Fork 0
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:
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: on:
pull_request: pull_request:
push: push:
branches: # Cannot filter on both branches (release) and tags - it's ORed
- release
tags: tags:
- '[0-9]+.[0-9]+.[0-9]+' - '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc\.[0-9]+(\.[0-9]+)?' - '[0-9]+.[0-9]+.[0-9]+-rc\.[0-9]+(\.[0-9]+)?'
@ -48,6 +47,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/syncthing/syncthing-android-builder container: ghcr.io/syncthing/syncthing-android-builder
steps: 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 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true