Skip to content

Commit ced6338

Browse files
committed
try with v1
1 parent 3a1498d commit ced6338

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/send-blog-communications.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,24 +137,23 @@ jobs:
137137
with:
138138
workload_identity_provider: ${{ secrets.DIALTONE_GCP_WIP }}
139139
service_account: ${{ secrets.DIALTONE_GCP_SA }}
140-
token_format: "access_token"
140+
# token_format: "access_token"
141141

142-
# - name: Set up Cloud SDK
143-
# uses: google-github-actions/setup-gcloud@v2
144-
145-
- name: Send sms
146-
run: |
147-
curl -m 70 -X POST https://us-central1-dp-dialtone-design-system.cloudfunctions.net/send-sms-to-dialtone-channel-v1 \
148-
-H "Authorization: bearer ${{ steps.auth.outputs.access_token }}" \
149-
-H "Content-Type: application/json" \
150-
-d '{
151-
"message": "New blog post: ${{ env.BLOG_POST_HEADING }}, read full article: ${{ env.POST_URL }}"
152-
}'
142+
- name: Set up Cloud SDK
143+
uses: google-github-actions/setup-gcloud@v2
153144

154145
# - name: Send sms
155146
# run: |
156-
# gcloud functions call send-sms-to-dialtone-channel \
157-
# --region=us-central1 --gen2 \
158-
# --data '{
147+
# curl -m 70 -X POST https://us-central1-dp-dialtone-design-system.cloudfunctions.net/send-sms-to-dialtone-channel-v1 \
148+
# -H "Authorization: bearer ${{ steps.auth.outputs.access_token }}" \
149+
# -H "Content-Type: application/json" \
150+
# -d '{
159151
# "message": "New blog post: ${{ env.BLOG_POST_HEADING }}, read full article: ${{ env.POST_URL }}"
160152
# }'
153+
154+
- name: Send sms
155+
run: |
156+
gcloud functions call send-sms-to-dialtone-channel-v1 \
157+
--data '{
158+
"message": "New blog post: ${{ env.BLOG_POST_HEADING }}, read full article: ${{ env.POST_URL }}"
159+
}'

0 commit comments

Comments
 (0)