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

Test Organization build-release.yml in productcomments repo #181

Merged
merged 4 commits into from
Aug 28, 2023

Conversation

leemyongpakvn
Copy link
Contributor

Questions Answers
Description? update_release_draft of Organizaion Build & Release failed when Release new version. We need test it separately in this repository.
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#33728
How to test? Github Build update_release_draft succeed in Release 6.0.1

@matks
Copy link
Contributor

matks commented Aug 28, 2023

So you replace the Github action global by a custom one. What are the changes that you introduce and will fix the problem?

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare for Release
run: |
cd ${{ github.event.repository.name }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think removing the cd will fix the problem.

Copy link
Contributor Author

@leemyongpakvn leemyongpakvn Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. The logic is simple: if you are inside productcomments folder, you can not zip it; you need to be in 1 level up, in modules folder. But this command is OK before. So we really need test it in action :)

@leemyongpakvn
Copy link
Contributor Author

If we make changes directly in https://github.com/PrestaShop/.github/blob/master/.github/workflows/build-release.yml, it will affects all modules. So I choose copying Organization build-release.yml content to this repo for safety (not a custom one, it is an exact copy for testing).
I doubt this commit PrestaShop/.github@aba1484
or outdated actions/[email protected] raises the update_release_draft issue.
And we need an environment to test it in action, right?

@Hlavtox
Copy link
Contributor

Hlavtox commented Aug 28, 2023

@leemyongpakvn The build script is broken in all module repositories and themes, so why don't we apply it globally?

@leemyongpakvn
Copy link
Contributor Author

@Hlavtox For safety, once we fix the issue locally in this repo, we will apply it globally.

@Hlavtox
Copy link
Contributor

Hlavtox commented Aug 28, 2023

@leemyongpakvn OK brother, sounds good. :-)

@leemyongpakvn
Copy link
Contributor Author

@M0rgan01 I tried to remove ${{ github.event.repository.name }} at line 24 in deploy step. If it does not work, we can try to remove cd ${{ github.event.repository.name }} at line 40 in update_release_draft step

Copy link
Contributor

@M0rgan01 M0rgan01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see what it gives

@matks
Copy link
Contributor

matks commented Aug 28, 2023

If we make changes directly in https://github.com/PrestaShop/.github/blob/master/.github/workflows/build-release.yml, it will affects all modules. So I choose copying Organization build-release.yml content to this repo for safety (not a custom one, it is an exact copy for testing).

Good approach 👍

@M0rgan01 M0rgan01 merged commit 763a9cb into PrestaShop:dev Aug 28, 2023
@M0rgan01
Copy link
Contributor

M0rgan01 commented Aug 28, 2023

@leemyongpakvn asset_path: ./${{ github.event.repository.name }}/${{ github.event.repository.name }}.zip must also be replaced by asset_path: ./${{ github.event.repository.name }}.zip.

And I think afterwards it will be good

@leemyongpakvn
Copy link
Contributor Author

leemyongpakvn commented Aug 28, 2023

I don't think so. I think old cd ${{ github.event.repository.name }} is correct since https://github.com/PrestaShop/contactform/releases/tag/v4.4.1 and https://github.com/PrestaShop/ps_languageselector/releases/tag/v2.1.3 were built correctly in March, while https://github.com/PrestaShop/ps_linklist/releases/tag/v6.0.3 on 23 June need manual change - 10 days after actions/[email protected] outdated
as you can see in the recent actions Annotations: https://github.com/PrestaShop/productcomments/actions/runs/6000817427

@leemyongpakvn
Copy link
Contributor Author

leemyongpakvn commented Aug 28, 2023

Moved to the related issue :)

@leemyongpakvn
Copy link
Contributor Author

@M0rgan01 After carefully checking Actions of recent Releases of Native modules between March and June this year, I think you are right now ;) Unfortunately, the non-native module qualityassurance does not have BuildRelease workflow so we must continue testing on this repo. PR #184 is waiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Product Comments v6.0.0 unzips incorrectly into the modules folder
5 participants