fix env variable problem

turns out the workflow-wide `env` context doesn't work in job-level if conditions
(it does however in step-level if conditions, which seems odd)
pull/1118/head
jemand771 2021-08-22 00:46:58 +02:00
parent 2d1cdd449c
commit 51365a4407
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 15 additions and 3 deletions

View File

@ -475,11 +475,23 @@ jobs:
# TODO everything from here on is stable/unstable release only
# TODO i got lazy here
# all other release jobs should be based on this
release-precondition-check:
if: |
github.event_name == 'push'
&& (github.ref == 'refs/heads/stable'
|| github.ref == 'refs/heads/unstable')
needs: [build, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
runs-on: ubuntu-latest
steps:
- name: dummy operation
- run: |
:
# TODO i got lazy here
docker-release:
if: ${{ env.is_release }}
needs: [build, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
needs: release-precondition-check
runs-on: ubuntu-latest
steps: