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

Improve wazuh-packages bump process using a new script and GH actions #2270

Merged
merged 11 commits into from
Jul 14, 2023

Conversation

DFolchA
Copy link
Contributor

@DFolchA DFolchA commented Jul 13, 2023

Related issue
#2243

Description

This PR adds a new script to bump the repository to new versions and a GitHub action workflow to automate the execution of the script.

It is necessary to add merge the workflow into master to be able to execute the action from the actions tab with a workflow_dispatch trigger.

@DFolchA DFolchA self-assigned this Jul 13, 2023
@jotacarma90 jotacarma90 self-requested a review July 13, 2023 15:51
# shell: bash



Copy link
Member

Choose a reason for hiding this comment

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

Delete tabs and fix FinalNewLine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in a35cea4

bump_version.py Outdated

with open(changelog_md_file, 'w') as file:
file.write(filedata)

Copy link
Member

Choose a reason for hiding this comment

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

Delete tabs and fix FinalNewLine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in a35cea4

@DFolchA DFolchA changed the title 2243 improve bump process Improve wazuh-packages bump process using a new script and GH actions Jul 14, 2023
@DFolchA DFolchA linked an issue Jul 14, 2023 that may be closed by this pull request
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Copy link
Member

Choose a reason for hiding this comment

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

Please try out checkout@v3 as it uses node16.

bump-version
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
(https://github.com/wazuh/wazuh-packages/actions/runs/5543421039)

Suggested change
- uses: actions/checkout@v2
- uses: actions/checkout@v3

More info: https://github.com/actions/checkout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 71cbe5f

@vikman90 vikman90 merged commit 0ae5300 into master Jul 14, 2023
4 checks passed
@vikman90 vikman90 deleted the 2243-improve-bump-process branch July 14, 2023 11:06
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.

Fix and improve bump proccedure in wazuh-packages repository
3 participants