Skip to content

Commit

Permalink
Merge pull request #67 from awslabs/vNext
Browse files Browse the repository at this point in the history
V next
  • Loading branch information
hakenmt authored Feb 24, 2025
2 parents 23c37aa + cdbb6f2 commit 53ca659
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 77 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: auto-approve
on:
pull_request_target:
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review

permissions: {}

jobs:
approve:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- app-src/**
- cdk/**
- .github/workflows/**

permissions: {}

Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ on:
pull_request_review:
types: [submitted]

permissions: {}

jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Check if review was approved by specific user
- name: Set approval status
id: check_approval
run: |
if [[ github.event.review.state == 'approved' && github.event.review.user.login == 'hakenmt' ]]; then
echo "✅ Test a since review was performed by an allowed user."
else
"🚨 Workflow requires admin review approval."
exit 1
fi
if [[ "${GITHUB_EVENT_REVIEW_STATE}" == "approved" && ("${GITHUB_EVENT_REVIEW_USER_LOGIN}" == "hakenmt" || "${GITHUB_EVENT_REVIEW_USER_LOGIN}" == "github-actions[bot]") ]]; then
echo "✅ Test a since review was performed by an allowed user."
echo "approved=true" >> $GITHUB_ENV
else
echo "🚨 Workflow requires admin review approval."
exit 1
fi
env:
GITHUB_EVENT_REVIEW_STATE: ${{ github.event.review.state }}
GITHUB_EVENT_REVIEW_USER_LOGIN: ${{ github.event.review.user.login }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Build Workflow](https://github.com/awslabs/multi-az-workshop/actions/workflows/build.yml/badge.svg) [Test Workflow](https://github.com/awslabs/multi-az-workshop/actions/workflows/test.yml/badge.svg) [Publish Workflow](https://github.com/awslabs/multi-az-workshop/actions/workflows/publish.yml/badge.svg)
![Build Workflow](https://github.com/awslabs/multi-az-workshop/actions/workflows/build.yml/badge.svg) ![Test Workflow](https://github.com/awslabs/multi-az-workshop/actions/workflows/test.yml/badge.svg) ![Publish Workflow](https://github.com/awslabs/multi-az-workshop/actions/workflows/publish.yml/badge.svg)

## Advanced Multi-AZ Resilience Patterns
### Building, operating, and testing resilient multi-AZ applications
Expand Down
17 changes: 0 additions & 17 deletions pipeline/MultiAZWorkshopPipeline.cs

This file was deleted.

22 changes: 0 additions & 22 deletions pipeline/MultiAzWorkshopPipeline.csproj

This file was deleted.

29 changes: 0 additions & 29 deletions pipeline/Program.cs

This file was deleted.

0 comments on commit 53ca659

Please sign in to comment.