Skip to content

Commit 3ab8a7b

Browse files
committed
Fixed references to inputs in k8s workflows
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`.
1 parent cfc01fc commit 3ab8a7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ env:
2525
jobs:
2626
docker:
2727
runs-on: ubuntu-latest
28-
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ inputs.BRANCH }}' || (${{ inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))
28+
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}' || (${{ github.event.inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))
2929

3030
steps:
3131
- name: Set environment (Staging)
32-
if: github.ref == 'refs/heads/${{ inputs.BRANCH }}'
32+
if: github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}'
3333
run: |
3434
echo "ENVIRONMENT=staging" >> $GITHUB_ENV
3535

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ env:
2525
jobs:
2626
docker:
2727
runs-on: ubuntu-latest
28-
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ inputs.BRANCH }}' || (${{ inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))
28+
if: github.event_name == 'push' && (github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}' || (${{ github.event.inputs.ENABLE_PRODUCTION }} && startsWith(github.ref, 'refs/tags/')))
2929

3030
steps:
3131
- name: Set environment (Staging)
32-
if: github.ref == 'refs/heads/${{ inputs.BRANCH }}'
32+
if: github.ref == 'refs/heads/${{ github.event.inputs.BRANCH }}'
3333
run: |
3434
echo "ENVIRONMENT=staging" >> $GITHUB_ENV
3535

0 commit comments

Comments
 (0)