Skip to content

Commit

Permalink
env also not supported in job if
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr727 committed Jun 18, 2023
1 parent d7a16aa commit 208379d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/BuildDockerPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# env is not supported in matrix operations :(
# env is not supported in matrix operations or job if :(
env:
# Do not push on pull_request events
dopush: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
name: Tool versions
runs-on: ubuntu-latest
needs: buildpush
if: ${{ env.dopush }}
if: ${{ github.event_name != 'pull_request' }}

strategy:

Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
name: Create README.md
runs-on: ubuntu-latest
needs: toolversions
if: ${{ env.dopush }}
if: ${{ github.event_name != 'pull_request' }}

steps:

Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
name: Update README.md
runs-on: ubuntu-latest
needs: updatereadme
if: ${{ (env.dopush }}
if: ${{ github.event_name != 'pull_request' }}

steps:

Expand All @@ -297,7 +297,7 @@ jobs:
name: Date badge
runs-on: ubuntu-latest
needs: buildpush
if: ${{ env.dopush }}
if: ${{ github.event_name != 'pull_request' }}

steps:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/BuildGitHubRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# env is not supported in matrix operations :(
# env is not supported in matrix operations or job if :(
env:
# Do not push on pull_request events
dopush: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
name: Publish
runs-on: ubuntu-latest
needs: [ build, version ]
if: ${{ env.dopush }}
if: ${{ github.event_name != 'pull_request' }}

steps:

Expand Down

0 comments on commit 208379d

Please sign in to comment.