Skip to content

Commit

Permalink
Skip topic delete in ephemeral branches since we don't deploy them (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrabian authored Oct 29, 2024
1 parent f587192 commit 3aa3538
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
with:
role-to-assume: ${{ env.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Delete topics from bigmac
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Delete Topics
repo: Enterprise-CMCS/bigmac
token: ${{ secrets.AUTOMATION_ACCESS_TOKEN }}
inputs: '{ "topics": "mgmt.connect.cms-carts-seds.carts-bigmac-streams-${{env.BRANCH_NAME}}.config,mgmt.connect.cms-carts-seds.carts-bigmac-streams-${{env.BRANCH_NAME}}.offsets,mgmt.connect.cms-carts-seds.carts-bigmac-streams-${{env.BRANCH_NAME}}.status"}'
ref: refs/heads/master # Otherwise workflow-dispatch tries to operate off of our default name
# - name: Delete topics from bigmac
# uses: benc-uk/workflow-dispatch@v1
# with:
# workflow: Delete Topics
# repo: Enterprise-CMCS/bigmac
# token: ${{ secrets.AUTOMATION_ACCESS_TOKEN }}
# inputs: '{ "topics": "mgmt.connect.cms-carts-seds.carts-bigmac-streams-${{env.BRANCH_NAME}}.config,mgmt.connect.cms-carts-seds.carts-bigmac-streams-${{env.BRANCH_NAME}}.offsets,mgmt.connect.cms-carts-seds.carts-bigmac-streams-${{env.BRANCH_NAME}}.status"}'
# ref: refs/heads/master # Otherwise workflow-dispatch tries to operate off of our default name
- name: Destroy
run: ./run destroy --stage $STAGE_PREFIX$branch_name --verify false

Expand Down

0 comments on commit 3aa3538

Please sign in to comment.