Skip to content

Commit 43dfad7

Browse files
committed
feat(gen): add date
1 parent 008bd91 commit 43dfad7

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

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

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ jobs:
77
linkcheck:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: filiph/[email protected]
11-
with:
12-
arguments: https://www.scaleway.com/en/docs/ >> 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
19-
- name: Send a saved artifact to a Slack workflow
20-
if: always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
21-
uses: slackapi/[email protected] # ref: https://github.com/slackapi/slack-github-action
22-
with:
23-
payload: |
24-
text: The link check results are available here.
25-
payload-file-path: "linkcheck_output.txt"
26-
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
27-
webhook-type: webhook-trigger
10+
- name: Get current date
11+
id: date
12+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
13+
- uses: filiph/[email protected]
14+
with:
15+
arguments: https://www.scaleway.com/en/docs/ >> linkcheck_output.txt
16+
- name: Upload a Build Artifact
17+
if: always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
18+
uses: actions/[email protected]
19+
with:
20+
name: linkcheck_output.txt
21+
path: linkcheck_output.txt
22+
- name: Send a saved artifact to a Slack workflow
23+
if: always() # Triggers step if previous step fails. Must be added to consecutive steps as well.
24+
uses: slackapi/[email protected] # ref: https://github.com/slackapi/slack-github-action
25+
with:
26+
payload: |
27+
text: Link check results from ${{ steps.date.outputs.date }}.
28+
payload-file-path: "linkcheck_output.txt"
29+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
30+
webhook-type: webhook-trigger

0 commit comments

Comments
 (0)