Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/build-phar.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
name: Build PHARs

on:
# Run on pushes to master and on all pull requests.
# Run on pushes to master and on pull requests which touch files used when building the PHARs.
# Prevent the build from running when there are only irrelevant changes.
push:
branches:
- master
paths-ignore:
- '**.md'
paths:
- '.github/workflows/build-phar.yml'
- 'scripts/build-phar.php'
- 'autoload.php'
- 'src/Config.php'
- 'src/Exceptions/RuntimeException.php'
- 'src/Exceptions/TokenizerException.php'
- 'src/Tokenizers/PHP.php'
- 'src/Util/Tokens.php'
pull_request:
paths:
- '.github/workflows/build-phar.yml'
- 'scripts/build-phar.php'
- 'autoload.php'
- 'src/Config.php'
- 'src/Exceptions/RuntimeException.php'
- 'src/Exceptions/TokenizerException.php'
- 'src/Tokenizers/PHP.php'
- 'src/Util/Tokens.php'

# Allow manually triggering the workflow.
workflow_dispatch:

Expand Down