Skip to content

Commit b917200

Browse files
committed
set date in environment
1 parent 2aad0cd commit b917200

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/link-checker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
env:
3030
JEKYLL_ENV: production # Built like production (rather than locally)
3131

32+
3233
- name: Link Checker
3334
id: lychee
3435
uses: lycheeverse/lychee-action@v2
@@ -45,10 +46,13 @@ jobs:
4546
# avoid 429 errors (too many requests) on github.com api requests
4647
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}}
4748

49+
- name: Set current date
50+
run: echo "REPORT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
51+
4852
- name: Create Issue From File
4953
if: steps.lychee.outputs.exit_code != 0
5054
uses: peter-evans/create-issue-from-file@v5
5155
with:
52-
title: "🔗 Link Check Report - $(date + '%Y-%m-%d')"
56+
title: "🔗 Link Check Report - ${{ env.REPORT_DATE }}"
5357
content-filepath: ./lychee/out.md
5458
labels: bug

0 commit comments

Comments
 (0)