boa
boa copied to clipboard
CI: Add manual workflow trigger (workflow_dispatch) to rust.yaml
Feature Request
Add a manual workflow_dispatch trigger to the Continuous integration workflow (.github/workflows/rust.yml).
The current GitHub Actions workflow can only be triggered by pushes, pull requests, and merge groups. There is no way to manually trigger the workflow from the GitHub UI, which makes debugging CI issues and re-running flaky failures difficult (often requiring empty commits). I would like to implement a manual trigger to improve CI/CD flexibility.
Example code
The .github/workflows/rust.yml file should be modified to add workflow_dispatch: to the on: section. This will enable the "Run workflow" button in the Actions UI:
on:
pull_request:
branches:
- main
- releases/**
push:
branches:
- main
- releases/**
merge_group:
types: [checks_requested]
workflow_dispatch: