This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into SgastonBW-patch-1
- Loading branch information
Showing
23 changed files
with
1,060 additions
and
552 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
name: Update Blog Posts | ||
# Ingest repository_dispatch events for syncing blog posts | ||
name: Blog Posts Listener | ||
|
||
on: | ||
schedule: | ||
- cron: '0 13 * * 1' | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [Blog] | ||
|
||
jobs: | ||
get_blog_posts: | ||
name: Get Most Recent Posts from Bandwidth Blog | ||
sync-blog-posts: | ||
runs-on: ubuntu-latest | ||
# outputs: | ||
# release_needed: ${{ steps.release_needed.outputs.release_needed }} | ||
steps: | ||
- name: Get Blog Posts from Wordpress API | ||
id: get_posts | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure Git and Create Branch | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "DX-Bandwidth" | ||
git checkout -b sync-blog-posts | ||
- name: Update Blog Posts File | ||
run: | | ||
cat > ./site/blogposts.config.json <<< $POSTS_JSON | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} | ||
POSTS_JSON: ${{ toJson(github.event.client_payload.posts) }} | ||
|
||
- name: Commit Changes and Create Pull Request | ||
run: | | ||
BLOG_POSTS=$(curl -Ls -H "Authorization: token $WORDPRESS_TOKEN" https://www.bandwidth.com/wp-json/wp/v2/posts?per_page=20 | jq '[del(.[] | select(.categories[] | contains(1680))) | .[] | {imageId: .featured_media, categories: .categories, postLink: .link, postTitle: .title.rendered}] | .[:10]') | ||
echo $BLOG_POSTS | ||
git add site/blogposts.config.json | ||
git commit -m 'update blog posts' | ||
git push origin sync-blog-posts | ||
gh pr create -B main -H sync-blog-posts --title 'Update Blog Posts' --body 'Auto-generated by Blog Posts Listener Workflow' | ||
env: | ||
WORDPRESS_TOKEN: ${{ secrets.WORDPRESS_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,128 @@ | ||
[ | ||
{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Call-Assure_Toll-Free-Disaster-Recovery.png", | ||
"categories": ["Voice"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"], | ||
"postLink": "https://www.bandwidth.com/blog/toll-free-risks-and-mitigation/", | ||
"postTitle": "5 biggest toll-free outage risk factors and how to prepare" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/SoM-Blog-Images-2023-1-700x360.png", | ||
"categories": ["Messaging"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"], | ||
"postLink": "https://www.bandwidth.com/blog/review-the-2023-carrier-requirements-for-10dlc-and-toll-free-sms/", | ||
"postTitle": "Review the 2023 carrier requirements for 10DLC and toll-free SMS" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Call-Assure_Toll-Free-Disaster-Recovery.png", | ||
"categories": ["CPaaS", "Voice"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/", "https://www.bandwidth.com/blog/category/voice/"], | ||
"postLink": "https://www.bandwidth.com/blog/toll-free-disaster-recovery-like-never-before/", | ||
"postTitle": "Toll-free disaster recovery like never before" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/sip-trunking-vs-voip-scaled-1.jpg", | ||
"categories": ["Voice"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"], | ||
"postLink": "https://www.bandwidth.com/en-gb/blog/sip-trunking-vs-voip/", | ||
"postTitle": "SIP trunking vs VoIP - What's the Difference?" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Teams-Operator-Connect-2.png", | ||
"categories": ["911 Access", "Messaging", "Voice"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/911-access/", "https://www.bandwidth.com/blog/category/messaging/", "https://www.bandwidth.com/blog/category/voice/"], | ||
"postLink": "https://www.bandwidth.com/blog/microsoft-teams-operator-connect-vs-direct-routing/", | ||
"postTitle": "Operator Connect vs. Direct Routing for Microsoft Teams" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog-Outbound_Call_Meaning_SEO.png", | ||
"categories": ["CPaaS"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/"], | ||
"postLink": "https://www.bandwidth.com/blog/outbound-call-meaning-using-outbound-calling-to-grow-your-business/", | ||
"postTitle": "Outbound Call Meaning - Using Outbound Calling To Grow Your Business" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Why-2FA-is-Vital_Blog.png", | ||
"categories": ["Messaging"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"], | ||
"postLink": "https://www.bandwidth.com/blog/how-to-protect-user-data-with-two-factor-multi-factor-authentication/", | ||
"postTitle": "How to Protect User Data with Two-Factor & Multi-Factor Authentication" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Texting-Turns-30_Blog.png", | ||
"categories": ["Messaging"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"], | ||
"postLink": "https://www.bandwidth.com/blog/texting-turns-30-the-history-of-sms/", | ||
"postTitle": "The first text message ever sent turns 30 —the history of SMS" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Finance_Blog_Feature_Graphic.png", | ||
"categories": ["CPaaS"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/"], | ||
"postLink": "https://www.bandwidth.com/blog/financial-services-challenges/", | ||
"postTitle": "6 challenges facing financial services in 2023, and how to overcome them" | ||
},{ | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Genesys-Sunsetting-MultiCloud-1.png", | ||
"categories": ["Voice"], | ||
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"], | ||
"postLink": "https://www.bandwidth.com/genesys-multicloud-cx-sunsetting/", | ||
"postTitle": "Why Genesys is Sunsetting MultiCloud CX" | ||
} | ||
{ | ||
"categories": [ | ||
"CPaaS" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_Executives-ECL-Take.png", | ||
"postLink": "https://www.bandwidth.com/blog/enterprise-communications-landscape-overview/", | ||
"postTitle": "An executive’s take on 2023 Enterprise Communications" | ||
}, | ||
{ | ||
"categories": [ | ||
"Messaging" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/messaging/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Toll-Free-Verification-1.png", | ||
"postLink": "https://www.bandwidth.com/blog/toll-free-verification-api/", | ||
"postTitle": "Streamline your toll-free number verification with Bandwidth" | ||
}, | ||
{ | ||
"categories": [ | ||
"911 Access", | ||
"CPaaS", | ||
"Phone Numbers", | ||
"Voice" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/911-access/", | ||
"https://www.bandwidth.com/blog/category/cpaas/", | ||
"https://www.bandwidth.com/blog/category/phone-numbers/", | ||
"https://www.bandwidth.com/blog/category/voice/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/The-MAN-Program-Blog-1-Header.png", | ||
"postLink": "https://www.bandwidth.com/blog/introduction-to-the-man-program-part-1/", | ||
"postTitle": "Get with the program, MAN (Part 1)" | ||
}, | ||
{ | ||
"categories": [ | ||
"CPaaS" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_IT-Leaders-Headaches.png", | ||
"postLink": "https://www.bandwidth.com/blog/whats-keeping-it-leaders-up-at-night-2023/", | ||
"postTitle": "What’s keeping IT leaders up at night?" | ||
}, | ||
{ | ||
"categories": [ | ||
"CPaaS" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_World-Telecommunications-Day-1.png", | ||
"postLink": "https://www.bandwidth.com/blog/world-telecommunications-day/", | ||
"postTitle": "World Telecommunication and Information Society Day (WTISD) on May 17th" | ||
}, | ||
{ | ||
"categories": [ | ||
"CPaaS" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_Cloud-Adoption-Rates.png", | ||
"postLink": "https://www.bandwidth.com/blog/the-state-of-enterprise-cloud-adoption-2023/", | ||
"postTitle": "The state of enterprise cloud adoption: 2023" | ||
}, | ||
{ | ||
"categories": [ | ||
"CPaaS", | ||
"Voice" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/", | ||
"https://www.bandwidth.com/blog/category/voice/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_What-Is-VOIP-Jitter-2.png", | ||
"postLink": "https://www.bandwidth.com/blog/network-jitter-complete-guide-to-what-internet-jitter-is-how-to-fix-it/", | ||
"postTitle": "Network Jitter – Complete Guide to What Internet Jitter Is & How to Fix It" | ||
}, | ||
{ | ||
"categories": [ | ||
"CPaaS" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/[email protected]", | ||
"postLink": "https://www.bandwidth.com/blog/maestro-makes-convergence-reality/", | ||
"postTitle": "Bandwidth Strives to Make Best-of-Breed CCaaS-UCaaS Convergence a Reality" | ||
}, | ||
{ | ||
"categories": [ | ||
"CPaaS", | ||
"Healthcare", | ||
"Messaging", | ||
"Voice API" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/cpaas/", | ||
"https://www.bandwidth.com/blog/category/healthcare/", | ||
"https://www.bandwidth.com/blog/category/messaging/", | ||
"https://www.bandwidth.com/blog/category/voice/voice-api/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Event_HIMSS-2023-Blog.png", | ||
"postLink": "https://www.bandwidth.com/blog/himss-2023-highlights/", | ||
"postTitle": "HIMSS 2023: New patient expectations and AI’s evolved role were the focus" | ||
}, | ||
{ | ||
"categories": [ | ||
"911 Access", | ||
"Voice" | ||
], | ||
"categoryLinks": [ | ||
"https://www.bandwidth.com/blog/category/911-access/", | ||
"https://www.bandwidth.com/blog/category/voice/" | ||
], | ||
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_SBC-for-Teams-Direct-Routing.png", | ||
"postLink": "https://www.bandwidth.com/blog/hosted-sbc-for-microsoft-teams-direct-routing/", | ||
"postTitle": "Your SBC for Microsoft Teams Direct Routing: 2023 Guide" | ||
} | ||
] |
This file contains 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
Oops, something went wrong.