Check if PHP AST have been changed in a pull request.
See action.yml
steps:
- uses: snow-actions/php-ast-changed@v1.0.0
id: php-ast
- name: Label
run: |
set -x
label='needless-debug'
if [ "${changed}" = 'false' ]; then
gh pr edit ${{ github.event.number }} --add-label ${label}
else
gh pr edit ${{ github.event.number }} --remove-label ${label}
fi
env:
changed: ${{ steps.php-ast.outputs.changed }}| Name | Description | Default | Required |
|---|---|---|---|
php-version |
PHP version of shivammathur/setup-php | 8.1 |
no |
ast-version |
AST version of nikic/php-ast | 85 |
no |
| Name | Type | Description |
|---|---|---|
changed |
string | AST of *.php files have changed: "true", not changed: "false" |
ubuntu-20.04ubuntu-18.04windows-2022windows-2019macos-11macos-10.15self-hosted
pull_requestpull_request_target
Welcome.