Skip to content

Commit f6c6998

Browse files
chore: sync workflows
1 parent 78b0a44 commit f6c6998

File tree

7 files changed

+59
-8
lines changed

7 files changed

+59
-8
lines changed

.github/workflows/add-release-tag.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
steps:
1818
- uses: technote-space/load-config-action@v1
1919
with:
20-
CONFIG_FILENAME: workflow-settings.json
20+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
21+
IGNORE_WARNING: 'true'
2122
- name: Get version
2223
uses: technote-space/get-next-version-action@v1
2324
with:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
workflow_run:
3+
workflows:
4+
- CI
5+
- Sync workflows
6+
- Update dependencies
7+
- Broken Link Check
8+
types:
9+
- completed
10+
11+
name: Check Warnings
12+
13+
jobs:
14+
annotations:
15+
name: Annotations
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 3
18+
steps:
19+
- uses: technote-space/download-annotations-action@v1
20+
id: annotations
21+
with:
22+
TARGET_RUN_ID: ${{ github.event.workflow_run.id }}
23+
INCLUDE_LEVELS: warning
24+
EXCLUDE_MESSAGE_PATTERNS: |
25+
*warning jest*
26+
- name: Build attachments
27+
run: |
28+
arr1='[{"fields":[{"title":"repo","value":"<https://github.com/${{ github.repository }}|${{ github.repository }}>","short":true},{"title":"action","value":"<${{ github.event.workflow_run.html_url }}|summary>","short":true}]}]'
29+
arr2=$(echo '${{ steps.annotations.outputs.messages }}' | jq -c 'map({"color":"warning","text":"```\(.)```"})')
30+
echo "SLACK_ATTACHMENTS=$(jq --argjson arr1 "$arr1" --argjson arr2 "$arr2" -nc '$arr1 + $arr2')" >> $GITHUB_ENV
31+
if: steps.annotations.outputs.number > 0
32+
- uses: 8398a7/action-slack@v3
33+
with:
34+
status: custom
35+
fields: repo
36+
custom_payload: |
37+
{
38+
text: "Warning annotations",
39+
attachments: ${{ env.SLACK_ATTACHMENTS }}
40+
}
41+
env:
42+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
43+
if: steps.annotations.outputs.number > 0 && env.SLACK_WEBHOOK_URL

.github/workflows/issue-opened.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
steps:
1313
- uses: technote-space/load-config-action@v1
1414
with:
15-
CONFIG_FILENAME: workflow-settings.json
15+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
16+
IGNORE_WARNING: 'true'
1617
- uses: technote-space/create-project-card-action@v1
1718
with:
1819
PROJECT: ${{ env.PROJECT }}

.github/workflows/pr-opened.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
steps:
1313
- uses: technote-space/load-config-action@v1
1414
with:
15-
CONFIG_FILENAME: workflow-settings.json
15+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
16+
IGNORE_WARNING: 'true'
1617
- uses: technote-space/create-project-card-action@v1
1718
with:
1819
PROJECT: ${{ env.PROJECT }}

.github/workflows/pr-updated.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
steps:
2222
- uses: technote-space/load-config-action@v1
2323
with:
24-
CONFIG_FILENAME: workflow-settings.json
24+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
25+
IGNORE_WARNING: 'true'
2526
- uses: technote-space/pr-commit-body-action@v1
2627
with:
2728
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
@@ -37,7 +38,8 @@ jobs:
3738
steps:
3839
- uses: technote-space/load-config-action@v1
3940
with:
40-
CONFIG_FILENAME: workflow-settings.json
41+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
42+
IGNORE_WARNING: 'true'
4143
- uses: technote-space/release-type-action@v1
4244
with:
4345
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
@@ -51,7 +53,8 @@ jobs:
5153
steps:
5254
- uses: technote-space/load-config-action@v1
5355
with:
54-
CONFIG_FILENAME: workflow-settings.json
56+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
57+
IGNORE_WARNING: 'true'
5558
- name: Set running flag
5659
run: echo "RUNNING=1" >> $GITHUB_ENV
5760
- uses: actions/checkout@v2

.github/workflows/toc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
steps:
1414
- uses: technote-space/load-config-action@v1
1515
with:
16-
CONFIG_FILENAME: workflow-settings.json
16+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
17+
IGNORE_WARNING: 'true'
1718
- uses: technote-space/toc-generator@v3
1819
with:
1920
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

.github/workflows/update-dependencies.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- uses: technote-space/load-config-action@v1
2323
if: env.RUNNING1
2424
with:
25-
CONFIG_FILENAME: workflow-settings.json
25+
CONFIG_FILENAME: workflow-settings.json, workflow-details.json
26+
IGNORE_WARNING: 'true'
2627
- uses: technote-space/auto-cancel-redundant-workflow@v1
2728
if: env.RUNNING1
2829
with:

0 commit comments

Comments
 (0)