File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ jobs:
10101111 with :
1212 arguments : https://www.scaleway.com/en/docs/serverless/ >> linkcheck_output.txt
13- - name : Upload a Build Artifact
14- if : always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
15- 16- with :
17- name : linkcheck_output.txt
18- path : linkcheck_output.txt
13+ - name : Parse output to variable
14+ if : always()
15+ run : |
16+ FILE_CONTENT=$(cat linkcheck_output.txt)
17+ echo "file_content=$FILE_CONTENT" >> $GITHUB_ENV
18+ - name : check if content exists
19+ run : |
20+ echo "$GITHUB_ENV"
1921 - name : Send message to Slack
2022 id : initial_message
2123 if : always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
2527 webhook-type : incoming-webhook
2628 payload : |
2729 text: "Link check results are available in :thread:."
28- - name : Parse output to variable
29- run : |
30- FILE_CONTENT=$(cat linkcheck_output.txt)
31- echo "file_content=$FILE_CONTENT" >> $GITHUB_ENV
3230 - name : Reply with output of linkcheck
33- if : always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
31+ if : always()
3432 uses :
slackapi/[email protected] # ref: https://github.com/slackapi/slack-github-action 3533 with :
3634 webhook : ${{ secrets.SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments