sphinx-doc / sphinx-doc-translations

Translations for Sphinx's documentation
Other
22 stars 16 forks source link

Ubuntu deprecation warning in Actions #23

Closed jdillard closed 10 months ago

jdillard commented 1 year ago

main.yml workflow actions are showing the following warning:

The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Coming from: https://github.com/sphinx-doc/sphinx-doc-translations/blob/3e964f79681ad2c2d11ebcd8e966f62f18c549e9/.github/workflows/main.yml#L20-L21

According to https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/, it look like it should be:

- echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")" 
- echo "::set-output name=yyyymm::$(/bin/date -u "+%Y%m")" 
+ echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
+ echo "yyyymm=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT