Skip to content

Commit 8b6f544

Browse files
committed
add steps to close open issues and add new issue to FR project board
1 parent e5de163 commit 8b6f544

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/check-all-english-links.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,34 @@ jobs:
1717
- name: npm run build
1818
run: npm run build
1919
- name: Run script
20-
run: script/check-english-links.js > broken_links.md
20+
run: |
21+
script/check-english-links.js > broken_links.md
22+
echo -e '\ncc @github/docs-content'>> broken_links.md
2123
- if: ${{ failure() }}
2224
name: Get title for issue
2325
id: check
2426
run: echo "::set-output name=title::$(head -1 broken_links.md)"
27+
- if: ${{ failure() }}
28+
name: Close previous report
29+
uses: lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8
30+
with:
31+
query: 'label:"broken+link+report"'
32+
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
2533
- if: ${{ failure() }}
2634
name: Create issue from file
35+
id: broken-link-report
2736
uses: peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326
2837
with:
2938
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
3039
title: ${{ steps.check.outputs.title }}
3140
content-filepath: ./broken_links.md
3241
labels: broken link report
42+
- if: ${{ failure() }}
43+
name: Add issue to FR project board
44+
uses: peter-evans/create-or-update-project-card@80140aaeb9730972a83c626031250621fe8f6670v1
45+
with:
46+
project-repository: 'github'
47+
project-number: '1367'
48+
column-name: 'Docs-content FR issues'
49+
issue-number: ${{ steps.broken-link-report.outputs.issue-number }}
50+
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

0 commit comments

Comments
 (0)