Skip to content

Commit c843433

Browse files
committed
feat(gen): update
1 parent 5aeccf2 commit c843433

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/link-check-schedule.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ jobs:
1010
- uses: filiph/[email protected]
1111
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-
uses: actions/[email protected]
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.
@@ -25,12 +27,8 @@ jobs:
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 }}

0 commit comments

Comments
 (0)