datajudge icon indicating copy to clipboard operation
datajudge copied to clipboard

ci: cancel runs on new commits

Open YYYasin19 opened this issue 2 years ago • 0 comments

Our CI currently let's runners run on old commits even though a newer one arrived. This can be solved pretty easy by adding the following concurrency group to the ci.yaml file:

name: Workflow X

on: # ...

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs: # ...

This can save resources (and make this faster, if you have a limited amount of runners)

YYYasin19 avatar May 12 '23 16:05 YYYasin19