Skip to content

Commit 2e92eee

Browse files
committed
Trigger CI builds on pull requests
... but upload only tags or pyshes to develop branch Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
1 parent 40be550 commit 2e92eee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/trunk.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Trunk / release build
22

33
on:
4+
pull_request:
5+
paths-ignore:
6+
- "README.md"
47
push:
58
branches:
69
- develop
@@ -38,11 +41,11 @@ jobs:
3841
run: |
3942
if [ "${{ github.ref_type }}" = "tag" ]; then
4043
echo "RELEASENAME=${{ github.ref_name }}" >> "$GITHUB_ENV"
41-
elif [ "${{ github.ref }}" = "refs/heads/develop" ]; then
44+
elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/develop" ]; then
4245
echo "PRERELEASE=--prerelease" >> "$GITHUB_ENV"
4346
echo "RELEASENAME=trunk" >> "$GITHUB_ENV"
4447
else
45-
echo "Not a tag or develop branch, skipping upload"
48+
echo "Not a tag or push to develop branch, skipping upload"
4649
echo "SKIP_UPLOAD=1" >> "$GITHUB_ENV"
4750
fi
4851

0 commit comments

Comments
 (0)