Skip to content

Commit b8ca598

Browse files
committed
Make variables available for subscribe MNS job
1 parent 2240afd commit b8ca598

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/deploy-backend.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ jobs:
101101

102102
- name: Terraform Apply
103103
working-directory: ${{ vars.TERRAFORM_DIR_PATH }}
104-
run: make apply apigee_environment=${{ inputs.apigee_environment }} environment=${{ inputs.environment }} sub_environment=${{ inputs.sub_environment }}
104+
run: |
105+
make apply apigee_environment=${{ inputs.apigee_environment }} environment=${{ inputs.environment }} sub_environment=${{ inputs.sub_environment }}
106+
echo "ID_SYNC_QUEUE_ARN=$(make -s output name=id_sync_queue_arn)" >> $GITHUB_ENV
105107
106108
- name: Install poetry
107109
if: ${{ inputs.environment == 'dev' && inputs.create_mns_subscription }}
@@ -118,6 +120,8 @@ jobs:
118120
working-directory: './lambdas/mns_subscription'
119121
run: |
120122
poetry install --no-root
123+
APIGEE_ENVIRONMENT=${{ inputs.apigee_environment }}
124+
SQS_ARN=$(ID_SYNC_QUEUE_ARN)
121125
echo "Subscribing SQS to MNS for notifications..."
122126
make subscribe
123127
# TODO - replace with modular e2e test workflow

lambdas/mns_subscription/src/subscribe_mns.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
def run_subscription():
66
mns = get_mns_service()
7-
result = mns.check_subscription()
8-
return result
7+
return mns.check_subscription()
98

109

1110
if __name__ == "__main__":

0 commit comments

Comments
 (0)