Skip to content

Develop

Develop #1

name: Auto Merge GitHub Actions
on:
pull_request:
types:
- opened
- synchronize
permissions:
contents: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.head.ref, 'dependabot/github_actions/')
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Auto approve
uses: hmarr/[email protected]
with:
github-token: ${{ secrets.GH_TOKEN }}
- name: Merge pull request
uses: "pascalgn/[email protected]"
permissions:

Check failure on line 22 in .github/workflows/auto-merge-github-actions.yml

View workflow run for this annotation

GitHub Actions / Auto Merge GitHub Actions

Invalid workflow file

The workflow is not valid. .github/workflows/auto-merge-github-actions.yml (Line: 22, Col: 9): Unexpected value 'permissions'
contents: write
env:
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"