replace deprecated set output

This commit is contained in:
xopenwrt 2026-06-29 21:52:11 +08:00
parent 68666506d0
commit cde11ef052
4 changed files with 14 additions and 3 deletions

View File

@ -65,7 +65,7 @@ jobs:
- name: Get current date & Set env
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
echo "Release=${{ github.event.inputs.Release }}" >> $GITHUB_ENV
echo "SharePoint=${{ github.event.inputs.SharePoint }}" >> $GITHUB_ENV
echo "data2=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

View File

@ -80,7 +80,7 @@ jobs:
- name: Set env & Echo System Info
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
echo "Release=${{ github.event.inputs.Release }}" >> $GITHUB_ENV
echo "SharePoint=${{ github.event.inputs.SharePoint }}" >> $GITHUB_ENV
echo "data2=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

View File

@ -81,7 +81,7 @@ jobs:
- name: Set env & Echo System Info
id: date
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
echo "Release=${{ github.event.inputs.Release }}" >> $GITHUB_ENV
echo "SharePoint=${{ github.event.inputs.SharePoint }}" >> $GITHUB_ENV
echo "data2=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

View File

@ -0,0 +1,11 @@
# AI Modification Log: GitHub Output Date
Date: 2026-06-29
## Change
- Replaced deprecated `::set-output` date output usage in X/Y/Z workflows with `$GITHUB_OUTPUT`.
## Reason
GitHub Actions deprecated `::set-output`. Writing `date=...` to `$GITHUB_OUTPUT` preserves the `steps.date.outputs.date` value using the supported output mechanism.