Skip to content

Bump ubuntu from noble-20240605 to noble-20240801 #37

Bump ubuntu from noble-20240605 to noble-20240801

Bump ubuntu from noble-20240605 to noble-20240801 #37

name: Dependabot auto-approve
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Generate token
id: generate_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.LANEYBOT_APP_ID }}
installation_id: ${{ secrets.LANEYBOT_INSTALLATION_ID }}
private_key: ${{ secrets.LANEYBOT_PRIVATE_KEY }}
- name: Approve a PR
run: gh pr review --approve "$PR_URL" --body "Dependabot PR automatically approved"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}