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 Jul 27, 2022
Conversation
…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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We need to get the name of the branch to which CHANGELOG.md was pushed.
For now, it looks as though
GITHUB_REF_NAMEis that name. But don'ttrust it - first, check that it is
mainormaster. If not, then usea couple of other methods to determine what is the push branch.
Signed-off-by: Rich Megginson rmeggins@redhat.com