sandynz opened a new pull request #14843:
URL: https://github.com/apache/shardingsphere/pull/14843


   
   Changes proposed in this pull request:
   - Cancel previous GitHub CI runs in the PR when pushing new commits, and 
also when merging PR into master branch
   
   
   Currently, every commit in any PR will trigger new GitHub CI workflow, but 
previous workflows won't be cancelled.
   e.g. PR 14821, there're 5 times of `Continuous Integration` and 5 times of 
`Integration Test`. `Continuous Integration` details:
   - When PR opened, it triggered [1706584203]( 
https://github.com/apache/shardingsphere/actions/runs/1706584203 )
   - When commited pushed, it triggered 3 pull_request `synchronize` type 
workflows: [1706599853]( 
https://github.com/apache/shardingsphere/actions/runs/1706599853 ), 
[1706621209]( https://github.com/apache/shardingsphere/actions/runs/1706621209 
), [1706629362]( 
https://github.com/apache/shardingsphere/actions/runs/1706629362 )
   - When PR merged, it triggered [1706896237]( 
https://github.com/apache/shardingsphere/actions/runs/1706896237 )
   
   Purpose:
   - Eliminate unnecessary GitHub CI runs to optimize GitHub CI resource 
consumption
   
   References:
   - [Workflow syntax#concurrency]( 
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
 )
   - [Contexts]( 
https://docs.github.com/en/actions/learn-github-actions/contexts#github-context 
)
   
   For concurrency group `${{ github.workflow }}-${{ github.ref }}`, test 
result on [my demo project]( 
https://github.com/sandynz/shardingsphere-test/actions ), [test ci.yml]( 
https://github.com/sandynz/shardingsphere-test/blob/master/.github/workflows/ci.yml
 ):
   - On PR open and commit, group is `Test CI-refs/pull/2/merge` (`2` is the PR 
number)
   - On PR merged, group is `Test CI-refs/heads/master`
   


-- 
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: notifications-unsubscr...@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to