File tree Expand file tree Collapse file tree 4 files changed +97
-0
lines changed
Expand file tree Collapse file tree 4 files changed +97
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Check Branch Alias
2+
3+ on :
4+ release :
5+ types : [released]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : write
10+ pull-requests : write
11+
12+ jobs :
13+ check-branch-alias :
14+ uses : wp-cli/.github/.github/workflows/reusable-check-branch-alias.yml@main
Original file line number Diff line number Diff line change 1+ name : " Copilot Setup Steps"
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - .github/workflows/copilot-setup-steps.yml
8+ pull_request :
9+ paths :
10+ - .github/workflows/copilot-setup-steps.yml
11+
12+ jobs :
13+ copilot-setup-steps :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v6
21+
22+ - name : Check existence of composer.json file
23+ id : check_composer_file
24+ uses : andstor/file-existence-action@v3
25+ with :
26+ files : " composer.json"
27+
28+ - name : Set up PHP environment
29+ if : steps.check_composer_file.outputs.files_exists == 'true'
30+ uses : shivammathur/setup-php@v2
31+ with :
32+ php-version : ' latest'
33+ ini-values : zend.assertions=1, error_reporting=-1, display_errors=On
34+ coverage : ' none'
35+ tools : composer,cs2pr
36+ env :
37+ COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+
39+ - name : Install Composer dependencies & cache dependencies
40+ if : steps.check_composer_file.outputs.files_exists == 'true'
41+ uses : ramsey/composer-install@v3
42+ env :
43+ COMPOSER_ROOT_VERSION : dev-${{ github.event.repository.default_branch }}
44+ with :
45+ # Bust the cache at least once a month - output format: YYYY-MM.
46+ custom-cache-suffix : $(date -u "+%Y-%m")
Original file line number Diff line number Diff line change 1+ ---
2+ name : Issue Triage
3+
4+ ' on ' :
5+ issues :
6+ types : [opened]
7+ workflow_dispatch :
8+ inputs :
9+ issue_number :
10+ description : ' Issue number to triage (leave empty to process all)'
11+ required : false
12+ type : string
13+
14+ jobs :
15+ issue-triage :
16+ uses : wp-cli/.github/.github/workflows/reusable-issue-triage.yml@main
17+ with :
18+ issue_number : ${{ github.event_name == 'workflow_dispatch' && inputs.issue_number || github.event.issue.number }}
Original file line number Diff line number Diff line change 1+ ---
2+ name : Manage Labels
3+
4+ ' on ' :
5+ workflow_dispatch :
6+ push :
7+ branches :
8+ - main
9+ - master
10+ paths :
11+ - ' composer.json'
12+
13+ permissions :
14+ issues : write
15+ contents : read
16+
17+ jobs :
18+ manage-labels :
19+ uses : wp-cli/.github/.github/workflows/reusable-manage-labels.yml@main
You can’t perform that action at this time.
0 commit comments