1
- name : Comment Workflow
1
+ name : Docs - Comment Workflow
2
2
on :
3
3
workflow_run :
4
4
workflows : ["Check for flaws"]
10
10
pull-requests : write # for marocchino/sticky-pull-request-comment
11
11
name : Comments
12
12
runs-on : ubuntu-latest
13
- steps :
13
+ steps :
14
14
- name : ' Download PR artifact'
15
15
uses : actions/github-script@v6
16
16
with :
34
34
35
35
- name : ' Unzip artifact'
36
36
run : unzip pr_number.zip
37
-
37
+
38
38
# Doesn't work across workflows
39
39
# - name: Get artifacts from flaw checker workflow
40
40
# uses: actions/download-artifact@v3
53
53
uses : juliangruber/read-file-action@v1
54
54
with :
55
55
path : ./pr_number
56
-
56
+
57
57
- name : File detail info
58
58
run : |
59
59
echo "${{ steps.read-errors-by-page.outputs.content }}"
@@ -68,22 +68,22 @@ jobs:
68
68
number : ${{ steps.read-error-pr-number.outputs.content }}
69
69
header : flaws
70
70
message : ${{ steps.read-errors-by-page.outputs.content || 'No flaws found' }}
71
-
71
+
72
72
# - name: Dump GitHub context
73
73
# env:
74
74
# GITHUB_CONTEXT: ${{ toJSON(github) }}
75
- # run: echo "$GITHUB_CONTEXT"
76
-
75
+ # run: echo "$GITHUB_CONTEXT"
76
+
77
77
# Would like to do this, but it doesn't work (for me).
78
- # Moving to time-based, or triggering on workflow
78
+ # Moving to time-based, or triggering on workflow
79
79
# - name: Wait for artifacts upload to succeed
80
80
81
81
# with:
82
82
# ref: ${{ github.ref }}
83
83
# check-name: 'Archive production artifacts'
84
84
# repo-token: ${{ secrets.GITHUB_TOKEN }}
85
85
# wait-interval: 80
86
-
86
+
87
87
# Not needed for now - trying to trigger off the workflow
88
88
# - name: Sleep for 80 seconds
89
89
# run: sleep 80s
0 commit comments