Skip to content

Commit 6bbd75a

Browse files
committed
Update GitHub Actions workflows to use the new output syntax for setting the current date. This change replaces the deprecated set-output command with an updated method that appends the date to the $GITHUB_OUTPUT file.
[CI] Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
1 parent d040a42 commit 6bbd75a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
limit-access-to-actor: true
3333
- name: Get current date
3434
id: date
35-
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M')"
35+
run: echo "date=$(date +'%Y%m%d%H%M')" >> "$GITHUB_OUTPUT"
3636
- name: Build with Ant
3737
run: ant -noinput -buildfile build.xml -Dtimestamp=${{steps.date.outputs.date}}
3838
- name: Create Release

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
- uses: actions/checkout@v2
2020
- name: Get current date
2121
id: date
22-
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M')"
22+
run: echo "date=$(date +'%Y%m%d%H%M')" >> "$GITHUB_OUTPUT"
2323
- name: Build with Ant
2424
run: ant -noinput -buildfile build.xml -Dtimestamp=${{steps.date.outputs.date}}

0 commit comments

Comments
 (0)