Skip to content

Commit 5d2f973

Browse files
authored
Workflow updaates (#133)
* Update workflow-validate.yaml * Update zendesk.mjs
1 parent d8d9045 commit 5d2f973

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/workflow-validate.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,29 @@ on:
1010
types: [opened, synchronize, ready_for_review, reopened]
1111

1212
jobs:
13-
build:
13+
markdown:
1414
runs-on: ubuntu-latest
15-
env:
16-
ZENDESK_USER: ${{ secrets.ZENDESK_USER }}
17-
ZENDESK_PASS: ${{ secrets.ZENDESK_TOKEN }}
1815

1916
steps:
2017
- uses: actions/checkout@v1
2118

22-
- name: Lint
19+
- name: Markdownlint
2320
run: |
2421
cd _linter
2522
npm install
2623
cd ..
2724
node _linter/markdownlint.js
2825
26+
zendesk:
27+
if: github.repository_owner == 'arduino'
28+
runs-on: ubuntu-latest
29+
env:
30+
ZENDESK_USER: ${{ secrets.ZENDESK_USER }}
31+
ZENDESK_PASS: ${{ secrets.ZENDESK_TOKEN }}
32+
33+
steps:
34+
- uses: actions/checkout@v1
35+
2936
- name: Preview changes
3037
run: |
3138
cd _deploy

_deploy/zendesk.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (ZENDESK_USER && ZENDESK_PASS) {
1010
zendeskApiLimit = 400;
1111
} else {
1212
console.log('Zendesk credentials not found.');
13-
zendeskApiLimit = 100;
13+
zendeskApiLimit = 200;
1414
}
1515
console.log(`API requests per minute: ${zendeskApiLimit}\n`);
1616

0 commit comments

Comments
 (0)