chore(operator): Fix file not found error during website build #37469
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
| # Auto-merge as documented in official Github docs | |
| # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions | |
| name: Auto-review Dependabot PRs | |
| on: pull_request | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| dependabot-reviewer: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # v 2.3.0 | |
| with: | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Retrieve GitHub App Credentials from Vault | |
| id: get-secrets | |
| uses: grafana/shared-workflows/actions/get-vault-secrets@28361cdb22223e5f1e34358c86c20908e7248760 | |
| with: | |
| repo_secrets: | | |
| APP_ID=loki-gh-app:app-id | |
| PRIVATE_KEY=loki-gh-app:private-key | |
| - name: Generate GitHub App Token | |
| id: app-token | |
| uses: "actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547" # v1 | |
| with: | |
| # Variables generated by the previous step get-secrets | |
| app-id: ${{ env.APP_ID }} | |
| private-key: ${{ env.PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| - name: Approve and auto-merge the dependabot PR | |
| run: | | |
| gh pr merge --auto --squash "$PR_URL" | |
| gh pr review $PR_URL \ | |
| --approve -b "Auto approve dependencies bump PR" | |
| env: | |
| PR_URL: ${{github.event.pull_request.html_url}} | |
| GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}" |