add environment variables for controlling jobs

pull/1118/head
jemand771 2021-08-22 00:25:56 +02:00
parent d3d1b7cb6a
commit eab22bec0d
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 14 additions and 1 deletions

View File

@ -7,6 +7,19 @@ on:
paths-ignore:
- "**.md"
env:
is-stable: |
github.event_name == 'push'
&& github.ref == 'refs/heads/stable'
is-unstable: |
github.event_name == 'push'
&& github.ref == 'refs/heads/unstable'
# this is an alias for is-stable || is-unstable
is-release: |
github.event_name == 'push'
&& (github.ref == 'refs/heads/stable'
|| github.ref == 'refs/heads/unstable')
jobs:
frontend:
runs-on: ubuntu-latest
@ -466,7 +479,7 @@ jobs:
docker-release:
needs: [build, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
runs-on: [self-hosted, linux, aboutcher-hosted, rocky8]
runs-on: ubuntu-latest
steps:
- name: Checkout Statping Repo