Skip to content

Commit

Permalink
Merge pull request #1120 from clearlydefined/elr/fix-prod-deploy
Browse files Browse the repository at this point in the history
fix failure of prod deploy due to invalid `is-release` value
  • Loading branch information
elrayle authored May 16, 2024
2 parents b2607b9 + 74da828 commit 0ea93fd
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/build-and-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,8 @@ on:
types: [published]

jobs:
determine-trigger:
name: Determine if this was triggered by a release or workflow_dispatch
runs-on: ubuntu-latest
outputs:
is-release: ${{ env.IS_RELEASE }}
steps:
- name: Check if this was triggered by a release
id: release
run: |
echo "IS_RELEASE"=${{ github.event_name == 'release' }} >> $GITHUB_ENV
build-and-deploy-prod:
uses: clearlydefined/operations/.github/workflows/app-build-and-deploy.yml@v1.0.0
needs: determine-trigger
uses: clearlydefined/operations/.github/workflows/app-build-and-deploy.yml@v1.1.0
secrets:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PROD }}
Expand All @@ -33,4 +21,3 @@ jobs:
azure-app-base-name: clearlydefined-api
azure-app-name-postfix: -prod
secondary-azure-app-name-postfix: -prod-europe
is-release: ${{ needs.determine-trigger.outputs.is-release }}

0 comments on commit 0ea93fd

Please sign in to comment.