diff --git a/.github/workflows/artifact-size-metrics.yml b/.github/workflows/artifact-size-metrics.yml index 65334d7..abe2342 100644 --- a/.github/workflows/artifact-size-metrics.yml +++ b/.github/workflows/artifact-size-metrics.yml @@ -73,14 +73,13 @@ jobs: const mutations = comments .filter(c => c[i].author.login == 'github-actions' && !c[i].isMinimized && c[i].body.startsWith('Affected Artifacts')) .map(c => - const hideComment = + github.graphql( `mutation { minimizeComment(input:{subjectId:"${comments[i].id}", classifier:OUTDATED}){ clientMutationId } }` - - github.graphql(hideComment) + ) ) await Promise.all(mutations)