Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/wiki
Submodule wiki updated from 702566 to b7fe0d
56 changes: 48 additions & 8 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@ jobs:
project_number: ${{ steps.resolve.outputs.project-number }}
steps:
- uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions
- id: resolve
uses: ./.github/actions/project-board/resolve
uses: ./.dev-tools-actions/.github/actions/project-board/resolve
with:
project: ${{ inputs.project || vars.PROJECT || '' }}

Expand All @@ -48,7 +56,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/project-board/sync-status
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions
- uses: ./.dev-tools-actions/.github/actions/project-board/sync-status
with:
organization: ${{ github.repository_owner }}
project: ${{ needs.resolve-project.outputs.project_number }}
Expand All @@ -61,7 +77,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/project-board/sync-linked-pr-metadata
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions
- uses: ./.dev-tools-actions/.github/actions/project-board/sync-linked-pr-metadata

sync-pull-request-status:
needs: resolve-project
Expand All @@ -73,18 +97,26 @@ jobs:
pull_request_status: ${{ steps.compute.outputs.pull-request-status }}
steps:
- uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions
- id: compute
uses: ./.github/actions/project-board/resolve-pr-status
uses: ./.dev-tools-actions/.github/actions/project-board/resolve-pr-status

- uses: ./.github/actions/project-board/sync-status
- uses: ./.dev-tools-actions/.github/actions/project-board/sync-status
with:
organization: ${{ github.repository_owner }}
project: ${{ needs.resolve-project.outputs.project_number }}
resource-node-id: ${{ github.event.pull_request.node_id }}
status-value: ${{ steps.compute.outputs.pull-request-status }}

- if: steps.compute.outputs.linked-issue-node-id != '' && steps.compute.outputs.linked-issue-status != ''
uses: ./.github/actions/project-board/sync-status
uses: ./.dev-tools-actions/.github/actions/project-board/sync-status
with:
organization: ${{ github.repository_owner }}
project: ${{ needs.resolve-project.outputs.project_number }}
Expand All @@ -97,10 +129,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions
- id: compute
uses: ./.github/actions/project-board/resolve-review-status
uses: ./.dev-tools-actions/.github/actions/project-board/resolve-review-status

- uses: ./.github/actions/project-board/sync-status
- uses: ./.dev-tools-actions/.github/actions/project-board/sync-status
with:
organization: ${{ github.repository_owner }}
project: ${{ needs.resolve-project.outputs.project_number }}
Expand Down
76 changes: 62 additions & 14 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,18 @@ jobs:

steps:
- uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- name: Resolve workflow PHP version
id: resolve
uses: ./.github/actions/php/resolve-version
uses: ./.dev-tools-actions/.github/actions/php/resolve-version

validate_pull_request:
name: Validate PR Changelog
Expand All @@ -89,9 +97,17 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- name: Setup PHP and install dependencies
uses: ./.github/actions/php/setup-composer
uses: ./.dev-tools-actions/.github/actions/php/setup-composer
with:
php-version: ${{ needs.resolve_php.outputs.php-version }}
root-version: ${{ env.CHANGELOG_ROOT_VERSION }}
Expand All @@ -107,7 +123,7 @@ jobs:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: composer dev-tools changelog:check -- --file="${CHANGELOG_FILE}" --against="origin/${BASE_REF}"

- uses: ./.github/actions/summary/write
- uses: ./.dev-tools-actions/.github/actions/summary/write
with:
markdown: |
## Changelog Validation Summary
Expand All @@ -132,17 +148,25 @@ jobs:
token: ${{ github.token }}
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- name: Setup PHP and install dependencies
uses: ./.github/actions/php/setup-composer
uses: ./.dev-tools-actions/.github/actions/php/setup-composer
with:
php-version: ${{ needs.resolve_php.outputs.php-version }}
root-version: ${{ env.CHANGELOG_ROOT_VERSION }}
install-options: --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts

- name: Resolve release version
id: version
uses: ./.github/actions/changelog/resolve-version
uses: ./.dev-tools-actions/.github/actions/changelog/resolve-version
with:
changelog-file: ${{ env.CHANGELOG_FILE }}
version: ${{ inputs.version || '' }}
Expand All @@ -155,7 +179,7 @@ jobs:
composer dev-tools changelog:promote -- "${RELEASE_VERSION}" --file="${CHANGELOG_FILE}" --date="${release_date}"

- name: Render release notes preview
uses: ./.github/actions/changelog/render-release-notes
uses: ./.dev-tools-actions/.github/actions/changelog/render-release-notes
with:
changelog-file: ${{ env.CHANGELOG_FILE }}
version: ${{ steps.version.outputs.value }}
Expand Down Expand Up @@ -183,14 +207,22 @@ jobs:
- source: `${{ steps.version.outputs.source }}`

- uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- uses: ./.github/actions/project-board/transition-status
- uses: ./.dev-tools-actions/.github/actions/project-board/transition-status
with:
project: ${{ inputs.project || vars.PROJECT || '' }}
from-status: Merged
to-status: Release Prepared

- uses: ./.github/actions/summary/write
- uses: ./.dev-tools-actions/.github/actions/summary/write
with:
markdown: |
## Release Preparation Summary
Expand All @@ -217,44 +249,60 @@ jobs:
token: ${{ github.token }}
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 0
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- name: Setup PHP and install dependencies
uses: ./.github/actions/php/setup-composer
uses: ./.dev-tools-actions/.github/actions/php/setup-composer
with:
php-version: ${{ needs.resolve_php.outputs.php-version }}
root-version: ${{ env.CHANGELOG_ROOT_VERSION }}
install-options: --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts

- name: Resolve merged release version
id: version
uses: ./.github/actions/changelog/resolve-merged-version
uses: ./.dev-tools-actions/.github/actions/changelog/resolve-merged-version
with:
head-ref: ${{ github.event.pull_request.head.ref }}
release-branch-prefix: ${{ env.RELEASE_BRANCH_PREFIX }}

- name: Render release notes
uses: ./.github/actions/changelog/render-release-notes
uses: ./.dev-tools-actions/.github/actions/changelog/render-release-notes
with:
changelog-file: ${{ env.CHANGELOG_FILE }}
version: ${{ steps.version.outputs.value }}

- name: Publish GitHub release
id: publish_release
uses: ./.github/actions/changelog/publish-release
uses: ./.dev-tools-actions/.github/actions/changelog/publish-release
with:
version: ${{ steps.version.outputs.value }}
target: ${{ github.event.pull_request.merge_commit_sha || github.sha }}

- uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- uses: ./.github/actions/project-board/transition-status
- uses: ./.dev-tools-actions/.github/actions/project-board/transition-status
with:
project: ${{ inputs.project || vars.PROJECT || '' }}
from-status: Release Prepared
to-status: Released
include-current-pull-request: 'true'

- uses: ./.github/actions/summary/write
- uses: ./.dev-tools-actions/.github/actions/summary/write
with:
markdown: |
## Release Publication Summary
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/label-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Checkout dev-tools workflow action source
uses: actions/checkout@v6
with:
repository: php-fast-forward/dev-tools
ref: ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
path: .dev-tools-actions
sparse-checkout: |
.github/actions

- name: Copy labels from issue to PR
uses: ./.github/actions/label-sync/copy-linked-issue-labels
uses: ./.dev-tools-actions/.github/actions/label-sync/copy-linked-issue-labels
Loading
Loading