Open nahakyuu opened 1 year ago
Rector workflow make commit and now fail on pull request from forks.
Can you try change /.github/workflow/rector.yml
in your PR to this code:
on:
pull_request:
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
secrets:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
with:
os: >-
['ubuntu-latest']
php: >-
['8.0']
?
YIISOFT_GITHUB_TOKEN
isn't passed to forks.
I think it's a good idea to fall back to regular GitHub token if YIISOFT_GITHUB_TOKEN
isn't available.
But it's should be available in PR to origin repository
No.
https://github.com/yiisoft/yii-debug-api/actions/workflows/rector.yml?query=is%3Afailure