GitHub actions: going through with pages-build-deployment

Viewed 1272

I have a GitHub page being deployed on my main repo (x.github.io). This website is being update through GitHub actions from others repo which pushes files to this main repo. The action pages-build-deployment is triggered each time there's a push to the main repo. However, some pushes take place close to one another, so the pages-build-deployment gets canceled and reruns in order to deploy the latest version of the website.

How can I stop this behavior so that it doesn't get canceled and instead finishes the current deployment?

enter image description here

1 Answers

You should try defining concurrency at your workflow.

ex.:

concurrency: 
  group: ${{ github.workflow }}
  cancel-in-progress: false

More info: here and here

Related