Repository navigation
docs: update compatibility matrix #291
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
| --- | |
| # yamllint disable rule:truthy rule:line-length | |
| name: "Auto-merge compatibility matrix updates" | |
| # The compatibility matrix PR is generated by the Infrahub release pipeline and | |
| # contains nothing but regenerated docs, so it merges itself once CI is green. | |
| # Waiting for CI is enforced by the `ci-gate` required status check on `stable`, | |
| # not by this workflow. | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| # Auto-merge cannot be enabled on a draft, so re-evaluate on the transition out of one. | |
| - ready_for_review | |
| jobs: | |
| enable-auto-merge: | |
| if: | | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.head.ref == 'automated/update-compatibility-docs' && | |
| github.event.pull_request.base.ref == 'stable' && | |
| github.event.pull_request.user.login == 'opsmill-bot' && | |
| github.event.pull_request.draft == false | |
| runs-on: "ubuntu-latest" | |
| timeout-minutes: 5 | |
| steps: | |
| - name: "Enable auto-merge" | |
| # Authenticate as opsmill-bot: it is the identity allowed to bypass the | |
| # approval requirement on `stable`, and auto-merge merges as whoever enabled it. | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_UPDATE_PACKAGE_OTTO }} | |
| run: gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}" |