You need to create a Personal access token with those permission to open a pull request automatically.
Then please add the personal access token to your
repository secrets
with an easily recognizable name. For example, IMGCMP_ACCESS_TOKEN
.
To run this GitHub Actions, please add the following lines to your
.github/workflows/imgcmp.yml
:
name: imgcmp
on:
push:
branches:
- main
- master
jobs:
imgcmp:
runs-on: ubuntu-latest
steps:
- uses: 9sako6/[email protected]
with:
token: ${{ secrets.IMGCMP_ACCESS_TOKEN }}