Skip to content

Commit

Permalink
Only redeploy the metadata tester on repo dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed May 21, 2024
1 parent 7a821cd commit 58ddf12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
dev-build: ${{ steps.check-version.outputs.dev-build }}
if: github.event_name != 'repository_dispatch'
steps:
- uses: actions/checkout@v4
- name: Treat as dev build if final piece of version is odd
Expand All @@ -45,6 +46,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.event_name != 'repository_dispatch'
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -80,7 +82,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: needs.check-dev-build.outputs.dev-build
if: github.event_name != 'repository_dispatch' && needs.check-dev-build.outputs.dev-build
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -125,7 +127,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: needs.check-dev-build.outputs.dev-build
if: github.event_name != 'repository_dispatch' && needs.check-dev-build.outputs.dev-build
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -164,6 +166,7 @@ jobs:
- test-release
- smoke-inflator
runs-on: ubuntu-latest
if: github.event_name != 'repository_dispatch'
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 58ddf12

Please sign in to comment.