From eab22bec0d95e35b941c39be7ef1b2a9fd0dd8ff Mon Sep 17 00:00:00 2001 From: jemand771 Date: Sun, 22 Aug 2021 00:25:56 +0200 Subject: [PATCH] add environment variables for controlling jobs --- .github/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 004d1b08..bb37773f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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