Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 2ce168b

Browse files
Merge branch 'main' into SgastonBW-patch-1
2 parents 009ee5f + bf96bce commit 2ce168b

23 files changed

+1060
-552
lines changed

.github/workflows/blog-posts.yml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1-
name: Update Blog Posts
1+
# Ingest repository_dispatch events for syncing blog posts
2+
name: Blog Posts Listener
23

34
on:
4-
schedule:
5-
- cron: '0 13 * * 1'
6-
workflow_dispatch:
5+
repository_dispatch:
6+
types: [Blog]
77

88
jobs:
9-
get_blog_posts:
10-
name: Get Most Recent Posts from Bandwidth Blog
9+
sync-blog-posts:
1110
runs-on: ubuntu-latest
12-
# outputs:
13-
# release_needed: ${{ steps.release_needed.outputs.release_needed }}
1411
steps:
15-
- name: Get Blog Posts from Wordpress API
16-
id: get_posts
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Configure Git and Create Branch
16+
run: |
17+
git config user.email "[email protected]"
18+
git config user.name "DX-Bandwidth"
19+
git checkout -b sync-blog-posts
20+
21+
- name: Update Blog Posts File
22+
run: |
23+
cat > ./site/blogposts.config.json <<< $POSTS_JSON
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
26+
POSTS_JSON: ${{ toJson(github.event.client_payload.posts) }}
27+
28+
- name: Commit Changes and Create Pull Request
1729
run: |
18-
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]')
19-
20-
echo $BLOG_POSTS
30+
git add site/blogposts.config.json
31+
git commit -m 'update blog posts'
32+
git push origin sync-blog-posts
33+
gh pr create -B main -H sync-blog-posts --title 'Update Blog Posts' --body 'Auto-generated by Blog Posts Listener Workflow'
2134
env:
22-
WORDPRESS_TOKEN: ${{ secrets.WORDPRESS_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}

.github/workflows/cypress-prod-nightly.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,14 @@ jobs:
2626
uses: actions/checkout@v3
2727

2828
- name: Cypress run
29-
uses: cypress-io/github-action@v4.2.0
29+
uses: cypress-io/github-action@v5.8.0
3030
timeout-minutes: 40
3131
with:
32-
record: true
3332
browser: ${{ matrix.browser }}
3433
working-directory: ./site
3534
config-file: prod-cypress.config.js
36-
tag: production
3735
env:
38-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
39-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
4036
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
42-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
4337
notify_for_failures:
4438
name: Notify for Failures
4539
needs: [cypress_nightly]

.github/workflows/pr-closed-delete-staging-site.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,14 @@ jobs:
6868
EOL
6969
7070
- name: Cypress Staged Cloudfront Deployment Test
71-
uses: cypress-io/github-action@v4.2.0
71+
uses: cypress-io/github-action@v5.8.0
7272
timeout-minutes: 40
7373
with:
74-
record: true
7574
browser: ${{ matrix.browser }}
7675
working-directory: ./site
7776
config-file: staged-cypress.config.js
78-
tag: production
7977
env:
80-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
81-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
8278
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
84-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
8579

8680
delete_bucket_folder:
8781
name: Delete Bucket Folder

.github/workflows/pr-publish-docsite.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,29 @@ jobs:
3131
- name: Setup Node
3232
uses: actions/setup-node@v3
3333
with:
34-
node-version: 16
34+
node-version: 18
3535

3636
- name: Checkout
3737
uses: actions/checkout@v3
3838

3939
- name: Cypress run
40-
uses: cypress-io/github-action@v4.2.0
41-
timeout-minutes: 40
40+
uses: cypress-io/github-action@v5.8.0
41+
timeout-minutes: 20
4242
with:
43-
record: true
4443
browser: ${{ matrix.browser }}
4544
start: yarn start
4645
wait-on: http://localhost:3000
4746
wait-on-timeout: 180
4847
working-directory: ./site
4948
config-file: cypress.config.js
5049
env:
51-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
52-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
5350
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
# overwrite commit message sent to Dashboard
55-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
56-
# re-enable PR comment bot
57-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
5851
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
5952
GTAG_TRACKING_ID: "12345"
6053

6154
publish:
6255
name: Publish Temp Docsite
6356
runs-on: ubuntu-latest
64-
outputs:
65-
domain: ${{steps.distribution.outputs.distribution-domain}}
66-
id: ${{steps.distribution.outputs.distribution-id}}
6757
steps:
6858
- name: Checkout
6959
uses: actions/checkout@v3

.github/workflows/publish-docsite.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,23 @@ jobs:
2424
- name: Setup Node
2525
uses: actions/setup-node@v3
2626
with:
27-
node-version: 16
27+
node-version: 18
2828

2929
- name: Checkout
3030
uses: actions/checkout@v3
3131

3232
- name: Cypress run
33-
uses: cypress-io/github-action@v4.2.0
34-
timeout-minutes: 40
33+
uses: cypress-io/github-action@v5.8.0
34+
timeout-minutes: 20
3535
with:
36-
record: true
3736
browser: ${{ matrix.browser }}
3837
start: yarn start
3938
wait-on: http://localhost:3000
4039
wait-on-timeout: 180
4140
working-directory: ./site
4241
config-file: cypress.config.js
4342
env:
44-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
45-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
4643
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
48-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
4944
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
5045
GTAG_TRACKING_ID: "12345"
5146

@@ -127,26 +122,20 @@ jobs:
127122
- name: Setup Node
128123
uses: actions/setup-node@v2
129124
with:
130-
node-version: 16
125+
node-version: 18
131126

132127
- name: Checkout
133128
uses: actions/checkout@v3
134129

135130
- name: Cypress Post Deployment Test
136-
uses: cypress-io/github-action@v4.2.0
137-
timeout-minutes: 40
131+
uses: cypress-io/github-action@v5.8.0
132+
timeout-minutes: 20
138133
with:
139-
record: true
140134
browser: ${{ matrix.browser }}
141135
working-directory: ./site
142136
config-file: prod-cypress.config.js
143-
tag: production
144137
env:
145-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
146-
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
147138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148-
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
149-
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
150139
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
151140
GTAG_TRACKING_ID: "12345"
152141

site/blogposts.config.json

Lines changed: 126 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,128 @@
11
[
2-
{
3-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Call-Assure_Toll-Free-Disaster-Recovery.png",
4-
"categories": ["Voice"],
5-
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
6-
"postLink": "https://www.bandwidth.com/blog/toll-free-risks-and-mitigation/",
7-
"postTitle": "5 biggest toll-free outage risk factors and how to prepare"
8-
},{
9-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/SoM-Blog-Images-2023-1-700x360.png",
10-
"categories": ["Messaging"],
11-
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
12-
"postLink": "https://www.bandwidth.com/blog/review-the-2023-carrier-requirements-for-10dlc-and-toll-free-sms/",
13-
"postTitle": "Review the 2023 carrier requirements for 10DLC and toll-free SMS"
14-
},{
15-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Call-Assure_Toll-Free-Disaster-Recovery.png",
16-
"categories": ["CPaaS", "Voice"],
17-
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/", "https://www.bandwidth.com/blog/category/voice/"],
18-
"postLink": "https://www.bandwidth.com/blog/toll-free-disaster-recovery-like-never-before/",
19-
"postTitle": "Toll-free disaster recovery like never before"
20-
},{
21-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/sip-trunking-vs-voip-scaled-1.jpg",
22-
"categories": ["Voice"],
23-
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
24-
"postLink": "https://www.bandwidth.com/en-gb/blog/sip-trunking-vs-voip/",
25-
"postTitle": "SIP trunking vs VoIP - What's the Difference?"
26-
},{
27-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Teams-Operator-Connect-2.png",
28-
"categories": ["911 Access", "Messaging", "Voice"],
29-
"categoryLinks": ["https://www.bandwidth.com/blog/category/911-access/", "https://www.bandwidth.com/blog/category/messaging/", "https://www.bandwidth.com/blog/category/voice/"],
30-
"postLink": "https://www.bandwidth.com/blog/microsoft-teams-operator-connect-vs-direct-routing/",
31-
"postTitle": "Operator Connect vs. Direct Routing for Microsoft Teams"
32-
},{
33-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog-Outbound_Call_Meaning_SEO.png",
34-
"categories": ["CPaaS"],
35-
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/"],
36-
"postLink": "https://www.bandwidth.com/blog/outbound-call-meaning-using-outbound-calling-to-grow-your-business/",
37-
"postTitle": "Outbound Call Meaning - Using Outbound Calling To Grow Your Business"
38-
},{
39-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Why-2FA-is-Vital_Blog.png",
40-
"categories": ["Messaging"],
41-
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
42-
"postLink": "https://www.bandwidth.com/blog/how-to-protect-user-data-with-two-factor-multi-factor-authentication/",
43-
"postTitle": "How to Protect User Data with Two-Factor & Multi-Factor Authentication"
44-
},{
45-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Texting-Turns-30_Blog.png",
46-
"categories": ["Messaging"],
47-
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
48-
"postLink": "https://www.bandwidth.com/blog/texting-turns-30-the-history-of-sms/",
49-
"postTitle": "The first text message ever sent turns 30 —the history of SMS"
50-
},{
51-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Finance_Blog_Feature_Graphic.png",
52-
"categories": ["CPaaS"],
53-
"categoryLinks": ["https://www.bandwidth.com/blog/category/cpaas/"],
54-
"postLink": "https://www.bandwidth.com/blog/financial-services-challenges/",
55-
"postTitle": "6 challenges facing financial services in 2023, and how to overcome them"
56-
},{
57-
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Genesys-Sunsetting-MultiCloud-1.png",
58-
"categories": ["Voice"],
59-
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
60-
"postLink": "https://www.bandwidth.com/genesys-multicloud-cx-sunsetting/",
61-
"postTitle": "Why Genesys is Sunsetting MultiCloud CX"
62-
}
2+
{
3+
"categories": [
4+
"CPaaS"
5+
],
6+
"categoryLinks": [
7+
"https://www.bandwidth.com/blog/category/cpaas/"
8+
],
9+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_Executives-ECL-Take.png",
10+
"postLink": "https://www.bandwidth.com/blog/enterprise-communications-landscape-overview/",
11+
"postTitle": "An executive’s take on 2023 Enterprise Communications"
12+
},
13+
{
14+
"categories": [
15+
"Messaging"
16+
],
17+
"categoryLinks": [
18+
"https://www.bandwidth.com/blog/category/messaging/"
19+
],
20+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Toll-Free-Verification-1.png",
21+
"postLink": "https://www.bandwidth.com/blog/toll-free-verification-api/",
22+
"postTitle": "Streamline your toll-free number verification with Bandwidth"
23+
},
24+
{
25+
"categories": [
26+
"911 Access",
27+
"CPaaS",
28+
"Phone Numbers",
29+
"Voice"
30+
],
31+
"categoryLinks": [
32+
"https://www.bandwidth.com/blog/category/911-access/",
33+
"https://www.bandwidth.com/blog/category/cpaas/",
34+
"https://www.bandwidth.com/blog/category/phone-numbers/",
35+
"https://www.bandwidth.com/blog/category/voice/"
36+
],
37+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/The-MAN-Program-Blog-1-Header.png",
38+
"postLink": "https://www.bandwidth.com/blog/introduction-to-the-man-program-part-1/",
39+
"postTitle": "Get with the program, MAN (Part 1)"
40+
},
41+
{
42+
"categories": [
43+
"CPaaS"
44+
],
45+
"categoryLinks": [
46+
"https://www.bandwidth.com/blog/category/cpaas/"
47+
],
48+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_IT-Leaders-Headaches.png",
49+
"postLink": "https://www.bandwidth.com/blog/whats-keeping-it-leaders-up-at-night-2023/",
50+
"postTitle": "What’s keeping IT leaders up at night?"
51+
},
52+
{
53+
"categories": [
54+
"CPaaS"
55+
],
56+
"categoryLinks": [
57+
"https://www.bandwidth.com/blog/category/cpaas/"
58+
],
59+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_World-Telecommunications-Day-1.png",
60+
"postLink": "https://www.bandwidth.com/blog/world-telecommunications-day/",
61+
"postTitle": "World Telecommunication and Information Society Day (WTISD) on May 17th"
62+
},
63+
{
64+
"categories": [
65+
"CPaaS"
66+
],
67+
"categoryLinks": [
68+
"https://www.bandwidth.com/blog/category/cpaas/"
69+
],
70+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_ECL-Teasers_Cloud-Adoption-Rates.png",
71+
"postLink": "https://www.bandwidth.com/blog/the-state-of-enterprise-cloud-adoption-2023/",
72+
"postTitle": "The state of enterprise cloud adoption: 2023"
73+
},
74+
{
75+
"categories": [
76+
"CPaaS",
77+
"Voice"
78+
],
79+
"categoryLinks": [
80+
"https://www.bandwidth.com/blog/category/cpaas/",
81+
"https://www.bandwidth.com/blog/category/voice/"
82+
],
83+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_What-Is-VOIP-Jitter-2.png",
84+
"postLink": "https://www.bandwidth.com/blog/network-jitter-complete-guide-to-what-internet-jitter-is-how-to-fix-it/",
85+
"postTitle": "Network Jitter – Complete Guide to What Internet Jitter Is &amp; How to Fix It"
86+
},
87+
{
88+
"categories": [
89+
"CPaaS"
90+
],
91+
"categoryLinks": [
92+
"https://www.bandwidth.com/blog/category/cpaas/"
93+
],
94+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/[email protected]",
95+
"postLink": "https://www.bandwidth.com/blog/maestro-makes-convergence-reality/",
96+
"postTitle": "Bandwidth Strives to Make Best-of-Breed CCaaS-UCaaS Convergence a Reality"
97+
},
98+
{
99+
"categories": [
100+
"CPaaS",
101+
"Healthcare",
102+
"Messaging",
103+
"Voice API"
104+
],
105+
"categoryLinks": [
106+
"https://www.bandwidth.com/blog/category/cpaas/",
107+
"https://www.bandwidth.com/blog/category/healthcare/",
108+
"https://www.bandwidth.com/blog/category/messaging/",
109+
"https://www.bandwidth.com/blog/category/voice/voice-api/"
110+
],
111+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Event_HIMSS-2023-Blog.png",
112+
"postLink": "https://www.bandwidth.com/blog/himss-2023-highlights/",
113+
"postTitle": "HIMSS 2023: New patient expectations and AI&#8217;s evolved role were the focus"
114+
},
115+
{
116+
"categories": [
117+
"911 Access",
118+
"Voice"
119+
],
120+
"categoryLinks": [
121+
"https://www.bandwidth.com/blog/category/911-access/",
122+
"https://www.bandwidth.com/blog/category/voice/"
123+
],
124+
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_SBC-for-Teams-Direct-Routing.png",
125+
"postLink": "https://www.bandwidth.com/blog/hosted-sbc-for-microsoft-teams-direct-routing/",
126+
"postTitle": "Your SBC for Microsoft Teams Direct Routing: 2023 Guide"
127+
}
63128
]

site/cypress.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = defineConfig({
77
},
88
baseUrl: 'http://localhost:3000'
99
},
10-
projectId: "oz7rpf",
1110
pageLoadTimeout: 60000,
1211
viewportWidth: 1440,
1312
viewportHeight: 900,

0 commit comments

Comments
 (0)