Add Plex server-list troubleshooting to Configuration doc #15
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: Dependabot auto-merge | |
| on: pull_request_target | |
| # Least privilege: every write (approve + merge) is performed with the | |
| # GitHub App token below, so the workflow's own GITHUB_TOKEN stays read-only. | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| dependabot: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor == 'dependabot[bot]' }} | |
| steps: | |
| - name: Create GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: ${{ vars.DOCS_APP_CLIENT_ID || secrets.DOCS_APP_CLIENT_ID || secrets.DOCS_APP_ID }} | |
| private-key: ${{ secrets.DOCS_APP_KEY }} | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v3.1.0 | |
| with: | |
| github-token: "${{ steps.app-token.outputs.token }}" | |
| skip-commit-verification: true | |
| - name: Approve PR + merge after required checks pass | |
| if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }} | |
| run: | | |
| set -euo pipefail | |
| review_decision=$(gh pr view "$PR_URL" --json reviewDecision -q .reviewDecision) | |
| if [ "$review_decision" != "APPROVED" ]; then | |
| gh pr review --approve "$PR_URL" | |
| else | |
| echo "PR already approved." | |
| fi | |
| echo "Waiting for required checks to complete successfully..." | |
| gh pr checks "$PR_URL" --required --watch | |
| echo "Required checks passed. Merging..." | |
| gh pr merge --admin --squash "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |