build(docker): refactor detection of OS and add support for RHEL distros #45
Workflow file for this run
This file contains 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
name: Close issues on PR merge to release branch | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
close-related-issues: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true && startsWith(github.ref, 'refs/heads/release/') | |
permissions: | |
issues: write | |
steps: | |
- name: Extract issue number | |
id: extract_issue_number | |
run: | | |
issue_number=$(echo "${{ github.event.pull_request.body }}" | grep -oE '#[0-9]+' | head -n 1 | tr -d '#') | |
echo "ISSUE_NUMBER=$issue_number" >> $GITHUB_ENV | |
- name: Close linked issues | |
uses: peter-evans/close-issue@v3 | |
with: | |
issue-number: ${{ env.ISSUE_NUMBER }} | |
comment: "This issue is being closed because the related PR has been merged into a release branch." |