Skip to content
Discussion options

You must be logged in to vote

Quick Fix

For anyone who's following this. Add this (or something akin to this) to your workflow file:

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

Working example here.

Important

Using Copilot with such a workflow still results in two workflow runs being generated, but the "earlier" will be cancelled immediately.

See evidence here:

Reason

Whether this is a bug or a feature, who knows, it happens because (as per my understanding at the moment), Copilot commits two things too fast, not like hu…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

@grahame-student
Comment options

Comment options

You must be logged in to vote
1 reply
@rkohanyi
Comment options

Comment options

You must be logged in to vote
1 reply
@rkohanyi
Comment options

Comment options

You must be logged in to vote
1 reply
@rkohanyi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rkohanyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Copilot Agent Mode Agent Mode is capable of iterating on its own code, recognizing errors, and fix
4 participants