Skip to content

Use latest stable plugin version (not dev) to generate screenshots from#847

Merged
carstingaxion merged 2 commits intoGatherPress:mainfrom
carstingaxion:fix/screenshot-workflow-plugin-i18n
Sep 3, 2024
Merged

Use latest stable plugin version (not dev) to generate screenshots from#847
carstingaxion merged 2 commits intoGatherPress:mainfrom
carstingaxion:fix/screenshot-workflow-plugin-i18n

Conversation

@carstingaxion
Copy link
Copy Markdown
Collaborator

@carstingaxion carstingaxion commented Sep 3, 2024

Screenshots are made from released versions only

Running this workflow from an unpublished development release leads to 404s on all language packs

https://downloads.wordpress.org/translation/plugin/gatherpress/0.31.0-alpha/fr_FR.zip

Description of the Change

Thats why we grab the latest release directly from wp.org, which makes sure the existing translations will match the loaded codebase.

Alternatives

We could instantly rewrite the version numbers in .php and .md file to match the latest stable version.
This would allow downloads.wordpress.org/translation to find and load the translation files. But it could be that parts of the plugin will not be translated or not be as accurate as on the last stable.

# Closes an undocumented problem with the new wp-playground/cli powered screenshot generator.

How to test the Change

Lets start the workflow and lets see if french UI, will be really french UI !

Changelog Entry

Changed - Screenshots are gonna made from released versions only

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@carstingaxion carstingaxion changed the title Use latest stable plugin version (not dev) to genearte screenshots Use latest stable plugin version (not dev) to generate screenshots from Sep 3, 2024
@carstingaxion carstingaxion marked this pull request as ready for review September 3, 2024 21:03
@carstingaxion carstingaxion merged commit 9ee889e into GatherPress:main Sep 3, 2024
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.

1 participant