8282 run : |
8383 pip install protobuf pytest
8484 python python/dialpad_tests.py
85-
85+
8686 # - name: Build and publish package
8787 # if: steps.version_check.outputs.sync_needed == 'true'
8888 # uses: dialpad/github-actions/python-package-publish@main
@@ -132,44 +132,46 @@ jobs:
132132 # # Using '.' zips the entire repository at the current state
133133 # path: .
134134
135- # notify-update-result:
136- # name: 'Notify update result'
137- # runs-on: ubuntu-latest
138- # needs: [sync-with-upstream]
139- # if: always()
140- # steps:
141- # - name: Determine update result
142- # id: update-result
143- # run: |
144- # UPDATE_RESULT="${{ needs.sync-with-upstream.result }}"
145-
146- # echo "Update result: $UPDATE_RESULT"
147-
148- # # Check if any update failed
149- # if [[ "$UPDATE_RESULT" == "failure" ]]; then
150- # echo "update_status=failure" >> $GITHUB_OUTPUT
151- # echo "Update failed"
152- # # Success only if at least one succeeded AND none failed
153- # elif [[ ("$UPDATE_RESULT" == "success") ]]; then
154- # echo "update_status=success" >> $GITHUB_OUTPUT
155- # echo "Update succeeded"
156- # else
157- # echo "update_status=skipped" >> $GITHUB_OUTPUT
158- # echo "Update was skipped"
159- # fi
160-
161- # - name: Send successful report
162- # if: steps.update-result.outputs.update_status == 'success'
163- # uses: dialpad/dp-send-sms@e27e1c6927d0f5c21fb5abf10cdfbf9354b2705f # v2
164- # with:
165- # api-key: ${{ secrets.ENGBOT_DIALPAD_API_TOKEN }} # organization secret
166- # text: 'Update of phonenumbers library was successful ✅'
167- # sender-id: '5517141663055872' # this user id corresponds to the Eng Bot user
135+ notify-update-result :
136+ name : ' Notify update result'
137+ runs-on : ubuntu-latest
138+ needs : [sync-with-upstream]
139+ if : always()
140+ steps :
141+ - name : Determine update result
142+ id : update-result
143+ run : |
144+ UPDATE_RESULT="${{ needs.sync-with-upstream.result }}"
145+
146+ echo "Update result: $UPDATE_RESULT"
147+
148+ # Check if any update failed
149+ if [[ "$UPDATE_RESULT" == "failure" ]]; then
150+ echo "update_status=failure" >> $GITHUB_OUTPUT
151+ echo "Update failed"
152+ # Success only if at least one succeeded AND none failed
153+ elif [[ ("$UPDATE_RESULT" == "success") ]]; then
154+ echo "update_status=success" >> $GITHUB_OUTPUT
155+ echo "Update succeeded"
156+ else
157+ echo "update_status=skipped" >> $GITHUB_OUTPUT
158+ echo "Update was skipped"
159+ fi
168160
169- # - name: Send failure report
170- # if: steps.update-result.outputs.update_status == 'failure'
171- # uses: dialpad/dp-send-sms@e27e1c6927d0f5c21fb5abf10cdfbf9354b2705f # v2
172- # with:
173- # api-key: ${{ secrets.ENGBOT_DIALPAD_API_TOKEN }} # organization secret
174- # text: 'Error updating phonenumbers library ❌. Workflow: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
175- # sender-id: '5517141663055872' # this user id corresponds to the Eng Bot user
161+ - name : Send successful report
162+ if : steps.update-result.outputs.update_status == 'success'
163+ uses : dialpad/dp-send-sms@e27e1c6927d0f5c21fb5abf10cdfbf9354b2705f # v2
164+ with :
165+ api-key : ${{ secrets.ENGBOT_DIALPAD_API_TOKEN }} # organization secret
166+ channel-name : ' tel-staging'
167+ text : ' TEST: Update of phonenumbers library was successful ✅'
168+ sender-id : ' 5517141663055872' # this user id corresponds to the Eng Bot user
169+
170+ - name : Send failure report
171+ if : steps.update-result.outputs.update_status == 'failure'
172+ uses : dialpad/dp-send-sms@e27e1c6927d0f5c21fb5abf10cdfbf9354b2705f # v2
173+ with :
174+ api-key : ${{ secrets.ENGBOT_DIALPAD_API_TOKEN }} # organization secret
175+ channel-name : ' tel-staging'
176+ text : ' TEST: Error updating phonenumbers library ❌. Workflow: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
177+ sender-id : ' 5517141663055872' # this user id corresponds to the Eng Bot user
0 commit comments