mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-27 21:55:07 +03:00
Trigger CI builds on pull requests
... but upload only tags or pyshes to develop branch Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
bfc106637a
commit
58b3efd2da
1 changed files with 5 additions and 2 deletions
7
.github/workflows/trunk.yml
vendored
7
.github/workflows/trunk.yml
vendored
|
@ -1,6 +1,9 @@
|
||||||
name: Trunk / release build
|
name: Trunk / release build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "README.md"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
|
@ -38,11 +41,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.ref_type }}" = "tag" ]; then
|
if [ "${{ github.ref_type }}" = "tag" ]; then
|
||||||
echo "RELEASENAME=${{ github.ref_name }}" >> "$GITHUB_ENV"
|
echo "RELEASENAME=${{ github.ref_name }}" >> "$GITHUB_ENV"
|
||||||
elif [ "${{ github.ref }}" = "refs/heads/develop" ]; then
|
elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/develop" ]; then
|
||||||
echo "PRERELEASE=--prerelease" >> "$GITHUB_ENV"
|
echo "PRERELEASE=--prerelease" >> "$GITHUB_ENV"
|
||||||
echo "RELEASENAME=trunk" >> "$GITHUB_ENV"
|
echo "RELEASENAME=trunk" >> "$GITHUB_ENV"
|
||||||
else
|
else
|
||||||
echo "Not a tag or develop branch, skipping upload"
|
echo "Not a tag or push to develop branch, skipping upload"
|
||||||
echo "SKIP_UPLOAD=1" >> "$GITHUB_ENV"
|
echo "SKIP_UPLOAD=1" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue