CI: un'esecuzione a mano non annulla più la verifica del push
Il gruppo di concorrenza dipendeva solo dal ref: una verifica lanciata a mano su un ramo (per esempio con un seme, per rifare un errore) annullava quella del push in corso sullo stesso ramo. In Gitea un lavoro annullato lascia sul commit lo stato «failure» e workflow_dispatch non scrive stati, quindi la richiesta di unione restava bloccata sui controlli richiesti. Ora l'evento fa parte del gruppo. Rilievo dispatch-annulla-push della revisione. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56fd29be80
commit
5e7cb73a85
4 files changed
+11
-4
No files matched your search
@@ -29,6 +29,9 @@ public sealed partial class PipelineTests
|
||||
Assert.DoesNotContain("pull_request", code, "a PR shows the status of its head commit, already verified by the push");
|
||||
Assert.DoesNotContain("tags:", code, "tags belong to rilascio.yml");
|
||||
StringAssert.Contains(code, "cancel-in-progress: ${{ gitea.ref != 'refs/heads/main' }}", "every merge into main runs to the end");
|
||||
|
||||
// A run started by hand never cancels the run of a push: only that one writes the statuses a merge needs.
|
||||
StringAssert.Contains(code, "group: verifica-${{ gitea.event_name }}-${{ gitea.ref }}");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
||||
Reference in new issue
Block a user