Skip to content

Commit f67facf

Browse files
committed
format expiry date
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 4d4373f commit f67facf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-pr-cmk.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
if-no-files-found: error
5959
retention-days: 10
6060

61+
- name: Calculate artifact expiry date
62+
id: expiry_date
63+
run: |
64+
echo "expiry_date=$(date -d '+10 days' '+%B %d, %Y')" >> $GITHUB_OUTPUT
65+
6166
- name: Find existing PR comment
6267
id: find_comment
6368
if: always()
@@ -79,6 +84,6 @@ jobs:
7984
${{ job.status == 'success' && '✅ Build complete' || '❌ Build failed' }} for PR #${{ github.event.pull_request.number }}.
8085
8186
${{ job.status == 'success'
82-
&& format('🔗 Download the [cmk binary for linux.x86-64]({0}) (expires in 10 days)', steps.upload_artifact.outputs.artifact-url)
87+
&& format('🔗 Download the [cmk binary for linux.x86-64]({0}) (expires on {1})', steps.upload_artifact.outputs.artifact-url, steps.expiry_date.outputs.expiry_date)
8388
|| format('See the [workflow run](https://github.com/{0}/actions/runs/{1}) for details.', github.repository, github.run_id) }}
8489
edit-mode: replace

0 commit comments

Comments
 (0)