Skip to content

Conversation

circlecube
Copy link
Member

@circlecube circlecube commented Jul 10, 2025

Proposed changes

This updates the workflow triggers.

Earlier, I tried using workflow_run type complete to trigger the workflows in a release branch. This trigger does work, but it doesn't associate the actions with the PR. Now I think the best course it to have the release prep workflow create a draft PR. Then once anyone marks the PR as ready for review, all the expected workflows will run as expected, this step makes more sense than trying to trigger workflows with workflows or as of lately, having to remember to close and reopen the PR to trigger the tests and push a dummy commit for a build (or manually trigger it and link it in a PR comment).

I feel like the last step of marking the PR as ready for review is simple enough and won't be forgotten since it is easy to see a PR is still a draft.

See also the accompanying change in the reusable workflow: newfold-labs/workflows#65

This also updates the pull request trigger to synchronize in all cases (this is if a new commit is pushed to the PR branch), but removes the edit (which seems to only be when the PR description is edited - which we shouldn't trigger test or build jobs for that).

AND it updates the concurrency group. It simplifies it so that these workflows will no overlap (for push and PR sync) by using a consistent group name so both will resolve to the same branch name string (effectively), so they share the concurrency group.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@circlecube circlecube requested review from desrosj, wpscholar, wpalani and a team July 10, 2025 17:57
@circlecube circlecube self-assigned this Jul 10, 2025
Copy link
Contributor

Latest Plugin Build

⬇️ Download build artifact: https://github.com/newfold-labs/wp-plugin-bluehost/actions/runs/16276106481/artifacts/3529836697
🗂️ Built from: update/workflow-triggers-and-concurrency
📦 Commit: 6532df2
📅 Date: 2025-07-14T19:35:16.614Z
🚀 Please download, test, and report any issues before merging. 🎉 This build includes the latest changes from this PR and was automatically generated by the GitHub Actions workflow. Any future commits will update this build.
Note: Artifacts expire after ~90 days

@circlecube circlecube merged commit 5fda22b into develop Jul 14, 2025
5 checks passed
@circlecube circlecube deleted the update/workflow-triggers-and-concurrency branch July 14, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants