Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.06 KB

pat.md

File metadata and controls

37 lines (29 loc) · 1.06 KB

How to use a Personal Access Token

Settings

1st Step

You need to create a Personal access token with those permission to open a pull request automatically.

required repo permissions

required user permissions

Then please add the personal access token to your repository secrets with an easily recognizable name. For example, imgoptimizer_ACCESS_TOKEN.

2nd step

To run this GitHub Actions, please add the following lines to your .github/workflows/imgoptimizer.yml:

name: imgoptimizer
on:
  push:
    branches:
      - main
      - master
jobs:
  imgoptimizer:
    runs-on: ubuntu-latest
    steps:
      - uses: mthsmb/[email protected]
        with:
          token: ${{ secrets.imgoptimizer_ACCESS_TOKEN }}