Bump aws-actions/amazon-ecr-login from 9238dd443b7a5941caf19ffbe68be34d4dbd61df to 0a67558866f6caa88dc86a206959e1c086db6f71 #1317
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Infra: Feature Testing: Destroy env" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: ['unlabeled', 'closed'] | |
| permissions: | |
| contents: read | |
| jobs: | |
| remove: | |
| runs-on: ubuntu-latest | |
| if: ${{ (github.event.label.name == 'status/feature_testing' || github.event.label.name == 'status/feature_testing_public') || (github.event.action == 'closed' && (contains(github.event.pull_request.labels.*.name, 'status/feature_testing') || contains(github.event.pull_request.labels.*.name, 'status/feature_testing_public'))) }} | |
| steps: | |
| - uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4 | |
| with: | |
| token: ${{ github.token }} | |
| - name: clone | |
| run: | | |
| git clone https://infra-tech:${{ secrets.INFRA_USER_ACCESS_TOKEN }}@github.com/kafbat/ui-infra.git --branch envs | |
| - name: remove env | |
| run: | | |
| cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts | |
| ./delete-env.sh pr${{ github.event.pull_request.number }} || true | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "infra-tech" | |
| git add ../kafka-ui-from-branch/ | |
| git commit -m "removed env:${{ needs.build.outputs.deploy }}" && git push || true |