Directory

Add `wp-versions-data-fetcher` workflow by thelovekesh · Pull Request #199 · wp-cli/wp-cli-tests · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wp-versions-data-fetcher workflow #199

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

thelovekesh
Copy link
Member

@thelovekesh thelovekesh commented Feb 12, 2024

Summary

Add workflow to do the following tasks:

  • Fetch data from https://api.wordpress.org/core/stable-check/1.0/ and save it to wp-versions.json file.
  • Create pull request against the artifacts branch in case no active pull requests are present.
  • Push changes to the existing PR in case the PR exists.

Partially addresses #51
Related: wp-cli/wp-cli#5935

TODO (before merging this PR in the main branch)

  • Create a new orphan branch called artifacts.
  • Commit empty wp-versions.json file and push to the artifacts branch.
  • Add required branch protection rules to avoid branch deletion by some automation or person.
  • Enable Allow GitHub Actions to create and approve pull requests in Settings > Actions > General.

@schlessera schlessera merged commit 8696a18 into wp-cli:main Apr 26, 2024
65 checks passed
@thelovekesh thelovekesh deleted the add/wp-versions-file-workflow branch April 26, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants