Skip to content

Use GITHUB_REF_NAME as name of push branch; fix error in branch detection [citest skip]#94

Merged
richm merged 1 commit intolinux-system-roles:masterfrom
richm:use-GITHUB_REF_NAME-for-push-branch
Jul 27, 2022
Merged

Use GITHUB_REF_NAME as name of push branch; fix error in branch detection [citest skip]#94
richm merged 1 commit intolinux-system-roles:masterfrom
richm:use-GITHUB_REF_NAME-for-push-branch

Conversation

@richm
Copy link
Copy Markdown
Collaborator

@richm richm commented Jul 27, 2022

We need to get the name of the branch to which CHANGELOG.md was pushed.
For now, it looks as though GITHUB_REF_NAME is that name. But don't
trust it - first, check that it is main or master. If not, then use
a couple of other methods to determine what is the push branch.

Signed-off-by: Rich Megginson rmeggins@redhat.com

…tion [citest skip]

We need to get the name of the branch to which CHANGELOG.md was pushed.
For now, it looks as though `GITHUB_REF_NAME` is that name.  But don't
trust it - first, check that it is `main` or `master`.  If not, then use
a couple of other methods to determine what is the push branch.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Copy link
Copy Markdown
Contributor

@nhosoi nhosoi left a comment

Choose a reason for hiding this comment

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

lgtm

@richm richm merged commit 099d68b into linux-system-roles:master Jul 27, 2022
@richm richm deleted the use-GITHUB_REF_NAME-for-push-branch branch July 27, 2022 17:54
richm added a commit to richm/linux-system-roles-kernel_settings that referenced this pull request Aug 3, 2022
[1.1.10] - 2022-08-03
--------------------

### New Features

- none

### Bug Fixes

- Set the kernel_settings_reboot_required when reboot needed (linux-system-roles#93)

Previously the role would only set `kernel_settings_reboot_required`
if the user did not specify `kernel_settings_reboot_ok: true`.
The role will now set `kernel_settings_reboot_required` whenever
the system needs a reboot, and rely on the handler to clear the flag
if the user has set `kernel_settings_reboot_ok: true`.

### Other Changes

- Add "Publish role to Galaxy" to github action changelog_to_tag.yml (linux-system-roles#91)

Fix a bash bug in changelog_to_tag.yml, which unexpectedly expanded "*".

- changelog_to_tag action - support other than "master" for the main branch name, as well (linux-system-roles#92)

- Use GITHUB_REF_NAME as name of push branch; fix error in branch detection [citest skip] (linux-system-roles#94)

We need to get the name of the branch to which CHANGELOG.md was pushed.
For now, it looks as though `GITHUB_REF_NAME` is that name.  But don't
trust it - first, check that it is `main` or `master`.  If not, then use
a couple of other methods to determine what is the push branch.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
richm added a commit that referenced this pull request Aug 3, 2022
[1.1.10] - 2022-08-03
--------------------

### New Features

- none

### Bug Fixes

- Set the kernel_settings_reboot_required when reboot needed (#93)

Previously the role would only set `kernel_settings_reboot_required`
if the user did not specify `kernel_settings_reboot_ok: true`.
The role will now set `kernel_settings_reboot_required` whenever
the system needs a reboot, and rely on the handler to clear the flag
if the user has set `kernel_settings_reboot_ok: true`.

### Other Changes

- Add "Publish role to Galaxy" to github action changelog_to_tag.yml (#91)

Fix a bash bug in changelog_to_tag.yml, which unexpectedly expanded "*".

- changelog_to_tag action - support other than "master" for the main branch name, as well (#92)

- Use GITHUB_REF_NAME as name of push branch; fix error in branch detection [citest skip] (#94)

We need to get the name of the branch to which CHANGELOG.md was pushed.
For now, it looks as though `GITHUB_REF_NAME` is that name.  But don't
trust it - first, check that it is `main` or `master`.  If not, then use
a couple of other methods to determine what is the push branch.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
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.

2 participants