A workflow example without deprecation warnings #186
YDX-2147483647
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As discussed in #155, days passed and things get deprecated…
Example workflow
https://github.com/YDX-2147483647/best-of-bits/blob/b67b4d2000f65a7af3f358cc40c89426b98d807c/.github/workflows/update-best-of-list.yml
Features
No deprecation warnings
Fix the following warnings.
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/Remove/replace the following dependencies.
https://github.com/peterjgrainger/action-create-branch, https://github.com/stefanzweifel/git-auto-commit-action, and hub
Replaced with a single step https://github.com/peter-evans/create-pull-request.
https://github.com/actions/create-release
This repo was archived on Mar 4, 2021, so I replaced it with https://github.com/softprops/action-gh-release.
Easier to extend
This workflow does not use https://github.com/marketplace/actions/best-of-update-action (which is approximately a simple
pip install
).If you extend best-of-generator, you can use it directly by installing from VCS. For example, you can change
run: pip install best-of==0.8.5
torun: pip install git+https://github.com/mkdocs/best-of-generator
.Job summary
The workflow not only saves latest changes to release notes and
*.md
, but also shows it in the job summary.This makes debugging less painful.
Beta Was this translation helpful? Give feedback.
All reactions