Skip to content

Commit

Permalink
Fixed references to inputs in k8s workflows
Browse files Browse the repository at this point in the history
refs: https://ghost.slack.com/archives/C027S85FS/p1701337213664099

This issue came up in Slack, that Zuul & Daisy are deploying on pushes to `main` as well as `k8s`.
  • Loading branch information
sam-lord committed Nov 30, 2023
1 parent cfc01fc commit 3ab8a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ env:
jobs:
docker:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ inputs.BRANCH }}' || (${{ inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}' || (${{ github.event.inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))

steps:
- name: Set environment (Staging)
if: github.ref == 'refs/heads/${{ inputs.BRANCH }}'
if: github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}'
run: |
echo "ENVIRONMENT=staging" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ env:
jobs:
docker:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ inputs.BRANCH }}' || (${{ inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}' || (${{ github.event.inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))

steps:
- name: Set environment (Staging)
if: github.ref == 'refs/heads/${{ inputs.BRANCH }}'
if: github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}'
run: |
echo "ENVIRONMENT=staging" >> $GITHUB_ENV
Expand Down

0 comments on commit 3ab8a7b

Please sign in to comment.