Native LDAP Phase 2: login wiring and auth_type routing #17416
Workflow file for this run
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
| name: Changelogs | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened, closed] | |
| # Only execute on the main branches (feature branches are excluded) | |
| branches: | |
| - master-staging # Temporary branch for staging until 5.1 GM | |
| - master | |
| # Uyuni patches | |
| - 'Uyuni-[0-9]+.[0-9]+' | |
| # SUSE Manager milestones | |
| - 'Manager-[0-9]+.[0-9]+-Alpha[0-9]?' | |
| - 'Manager-[0-9]+.[0-9]+-Beta[0-9]?' | |
| - 'Manager-[0-9]+.[0-9]+-RC[0-9]?' | |
| - 'Manager-[0-9]+.[0-9]+-GMC[0-9]?' | |
| - 'Manager-[0-9]+.[0-9]+-GM[0-9]?' | |
| # SUSE Manager releases | |
| - 'Manager-[0-9]+.[0-9]+' | |
| - 'Manager-[0-9]+.[0-9]+-MU-[0-9]+.[0-9]+.[0-9]+' | |
| # Only execute on directories that have changelogs | |
| paths: | |
| - 'branding/**' | |
| - 'client/**' | |
| - 'containers/**' | |
| - 'java/**' | |
| - 'projects/**' | |
| - 'proxy/**' | |
| - 'python/**' | |
| - 'reporting/**' | |
| - 'schema/**' | |
| - 'search-server/**' | |
| - 'selinux/**' | |
| - 'spacecmd/**' | |
| - 'spacewalk/**' | |
| - 'susemanager/**' | |
| - 'susemanager-branding-oss/**' | |
| - 'susemanager-sync-data/**' | |
| - 'susemanager-utils/**' | |
| - 'suseRegisterInfo/**' | |
| - 'tftpsync/**' | |
| - 'utils/**' | |
| - 'uyuni/**' | |
| - 'web/**' | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| changelog_test: | |
| name: Changelog tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - name: Checkout the workflow scripts | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | |
| with: | |
| fetch-depth: 1 | |
| ref: ${{ github.event.pull_request.base.sha }} | |
| sparse-checkout: '.github/workflows' | |
| - id: master | |
| name: Get modified master changelog files | |
| uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c #v2.3.0 | |
| with: | |
| filter: '*.changes' | |
| - name: Fail if the master changelog files are modified | |
| if: steps.master.outputs.all | |
| env: | |
| MASTER_CHANGED_FILES: ${{ steps.master.outputs.all }} | |
| run: | | |
| echo "Master changelog files cannot be modified directly." | |
| echo "Please revert your changes on the following master changelog file(s):" | |
| while IFS= read -r file | |
| do | |
| [ -z "${file}" ] && continue | |
| echo " - ${file}" | |
| done <<< "$MASTER_CHANGED_FILES" | |
| echo | |
| echo "See https://github.com/uyuni-project/uyuni/wiki/Contributing for a guide to writing changelogs." | |
| exit 1 | |
| - name: Checkout the PR HEAD branch | |
| id: checkout | |
| if: "!contains(github.event.pull_request.body, '[x] No changelog needed')" | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 | |
| with: | |
| fetch-depth: 1 | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| path: .head | |
| - name: Test changelog entries | |
| if: steps.checkout.outcome == 'success' | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| BZ_TOKEN: ${{ secrets.BUGZILLA_TOKEN }} | |
| GIT_REPO: ${{ github.event.pull_request.base.repo.full_name }} | |
| PR_NUM: ${{ github.event.pull_request.number }} | |
| TRACKER_FILE: .github/workflows/changelogs/trackers.xml | |
| # Tracker file can be retrieved from the OBS/IBS API | |
| # by calling 'osc api /issue_trackers/' (with authentication) | |
| run: | | |
| pip install python-bugzilla~=3.2.0 | |
| mapfile -t CHANGED_FILES < <(gh api --paginate repos/$GIT_REPO/pulls/$PR_NUM/files | jq -r '.[].filename') | |
| python .github/workflows/changelogs/changelogs.py ${RUNNER_DEBUG:+--verbose} \ | |
| --tracker-file "$TRACKER_FILE" --git-repo "$GIT_REPO" --uyuni-dir .head --pr-number "$PR_NUM" "${CHANGED_FILES[@]}" | |
| # Warns the user if they merged the PR, but the changelog test failed | |
| warn_user_if_merged: | |
| name: Warn user if merged | |
| if: always() && github.event.action == 'closed' && github.event.pull_request.merged == true && needs.changelog_test.result == 'failure' | |
| needs: changelog_test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Remind the author with a comment | |
| uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5.0.0 | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| :warning: Some changelog tests have failed. @${{ github.event.pull_request.user.login }}, please review and fix the changelog issues with an additional PR. |