ci: Move env to job context

This commit is contained in:
Henrik Tjäder 2023-05-31 22:15:39 +02:00
parent aa7d7fd052
commit 371f625322

View file

@ -474,15 +474,14 @@ jobs:
needs: needs:
- ci-success - ci-success
- parseversion - parseversion
env:
# Only run this when pushing to master branch
if: github.ref == 'refs/heads/master'
steps:
- env:
branch: ${{ needs.parseversion.outputs.branch }} branch: ${{ needs.parseversion.outputs.branch }}
majorversion: ${{ needs.parseversion.outputs.majorversion }} majorversion: ${{ needs.parseversion.outputs.majorversion }}
version: ${{ needs.parseversion.outputs.version }} version: ${{ needs.parseversion.outputs.version }}
# Only run this when pushing to master branch
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Push to stable release branch if master contains stable version - name: Push to stable release branch if master contains stable version