Skip to content

Commit

Permalink
chore: add deployment status
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Nov 19, 2024
1 parent f42a479 commit 1cd9dc1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
echo "total_additions=$total_additions" >> $GITHUB_ENV
- name: Deploy to precommit environment
id: deploy
if: ${{ steps.check_additions.outputs.total_additions > 100 && github.actor != 'dependabot[bot]' }}
uses: einaregilsson/beanstalk-deploy@v22
with:
Expand All @@ -62,3 +63,15 @@ jobs:
version_label: ${{ github.run_id }}
wait_for_deployment: false
wait_for_environment_recovery: ${{ env.DEPLOYMENT_RECOVERY_TIMEOUT_SECONDS }}

- name: Deployment Status
if: ${{ always() }}
run: |
if [[ "${{ steps.deploy.outcome }}" == "success" ]]; then
echo "✅ Deployment completed successfully"
elif [[ "${{ steps.deploy.outcome }}" == "skipped" ]]; then
echo "⏭️ Deployment was skipped (PR additions <= 100 or dependabot PR)"
else
echo "❌ Deployment failed"
exit 1
fi

0 comments on commit 1cd9dc1

Please sign in to comment.