Improve env:install command with better configurability and error handling #277
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checks for uncommitted changes to built files in pull requests. | |
name: Check Built Files (PRs) | |
on: | |
# Because all commits happen through SVN and should always be manually reviewed by a committer, this workflow only | |
# runs for pull requests. | |
# | |
# Other workflows that run for the push event will detect changes to versioned files and fail. | |
pull_request: | |
branches: | |
- trunk | |
- '6.[8-9]' | |
- '[7-9].[0-9]' | |
paths: | |
# Any change to a CSS, JavaScript, JSON, or SASS file should run checks. | |
- '**.css' | |
- '**.js' | |
- '**.json' | |
- '**.sass' | |
# These files configure npm and the task runner. Changes could affect the outcome. | |
- 'package*.json' | |
- 'Gruntfile.js' | |
- 'webpack.config.js' | |
- 'tools/webpack/**' | |
# These files configure Composer. Changes could affect the outcome. | |
- 'composer.*' | |
# Confirm any changes to relevant workflow files. | |
- '.github/workflows/check-built-files.yml' | |
# Cancels all previous workflow runs for pull requests that have not completed. | |
concurrency: | |
# The concurrency group contains the workflow name and the branch name for pull requests | |
# or the commit hash for any other events. | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
# Disable permissions for all available scopes by default. | |
# Any needed permissions should be configured at the job level. | |
permissions: {} | |
jobs: | |
check-for-built-file-changes: | |
name: Check built files | |
# This prevents an unnecessary second run after changes are committed back because Dependabot always rebases and force pushes. | |
if: ${{ github.repository == 'wordpress/wordpress-develop' && ( github.actor != 'dependabot[bot]' || github.event.commits < 2 ) }} | |
uses: ./.github/workflows/reusable-check-built-files.yml |