GOODBOY008 opened a new pull request, #777:
URL: https://github.com/apache/fesod/pull/777
## Summary
This PR adds concurrency control to GitHub Actions workflows to optimize CI
resource usage and provide faster feedback.
### Changes
- **CodeQL Security Scan**: Added concurrency group `codeql-${{
github.event.pull_request.number || github.ref }}`
- **Java CI**: Added concurrency group `ci-${{
github.event.pull_request.number || github.ref }}`
- **License Check**: Added concurrency group `license-check-${{
github.event.pull_request.number || github.ref }}`
- **Documentation CI**: Added concurrency group `ci-docs-${{
github.event.pull_request.number || github.ref }}`
### Benefits
- **Resource Optimization**: Automatically cancels outdated workflow runs
when new commits are pushed
- **Faster Feedback**: Developers get CI results for the latest changes more
quickly
- **Cost Reduction**: Prevents redundant workflow executions
### Implementation
Each workflow now includes:
```yaml
concurrency:
group: <workflow-name>-${{ github.event.pull_request.number || github.ref
}}
cancel-in-progress: true
```
This ensures only one workflow run per PR or branch ref executes at a time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]