Make WordPress Core

Opened 4 weeks ago

Last modified 2 weeks ago

#64227 new task (blessed)

GitHub Actions updates and improvements for 7.0

Reported by: desrosj's profile desrosj Owned by:
Milestone: 7.0 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch
Focuses: Cc:

Description

This ticket is for various updates and improvements for Core's GitHub Actions workflows.

Previously:

Change History (4)

This ticket was mentioned in PR #10511 on WordPress/wordpress-develop by @desrosj.


4 weeks ago
#1

  • Keywords has-patch added

This new post-branching task is meant for any tasks that should be run immediately after creating a new numbered branch. Currently, this only consists of GitHub Actions-related tasks.

In addition to the pre-existing replace:workflow-references-local-to-remote task, a new clean:workflows task is being added that deletes the workflow files that are only intended for trunk.

Trac ticket: Core-64227

@desrosj commented on PR #10511:


3 weeks ago
#2

Waiting to merge this until the discussions on #10512 are resolved to ensure this task deletes all of the correct files.

#3 @desrosj
2 weeks ago

In 61286:

Build/Test Tools: Introduce post-branching Grunt task.

In [59673], a Grunt subtask was introduced to convert workflow file references in GitHub Action workflows from local ones to remote ones that target the trunk branch.

The workflow-references-local-to-remote Grunt task should be run after creating a new numbered branch to take advantage of the work started in [58165].

This commit introduces a new target for the clean Grunt task: workflows. Running grunt clean:workflows will delete all workflow files that are not intended to exist outside of trunk.

Another Grunt task (post-branching) has also been added as a way to group all tasks taht should run within a newly created branch. For now, this contains clean:workflows and replace:workflow-references-local-to-remote. But more can be added in the future as more aspects of the branching process are automated.

Props johnbillion.
See #64227.

@desrosj commented on PR #10511:


2 weeks ago
#4

Fixed in r61286.

Note: See TracTickets for help on using tickets.