|
7 | 7 | linkcheck: |
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | steps: |
10 | | - |
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 | | - |
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 | + |
| 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 | + |
| 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