Skip to content

Latest commit

 

History

History
60 lines (51 loc) · 1.36 KB

rector.md

File metadata and controls

60 lines (51 loc) · 1.36 KB

Using Rector

General usage

on:
  pull_request:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

  push:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

name: rector

jobs:
  rector:
    uses: yiisoft/actions/.github/workflows/rector.yml@master
    with:
      os: >-
        ['ubuntu-latest']
      php: >-
        ['8.0']

How trigger GitHub Workflows runs after commit rector changes

By default, GitHub will not trigger workflows run after commit into another workflows. You can change this by using a Personal Access Token (apply the repo and workflow scopes).

Pass your token via secrets. For example:

jobs:
  rector:
    uses: yiisoft/actions/.github/workflows/rector.yml@master
    with:
      os: >-
        ['ubuntu-latest']
      php: >-
        ['8.0']
    secrets:
      token: ${{ secrets.REPO_GITHUB_TOKEN }}