Commit d92ef1f4 authored by tom's avatar tom

[skip ci] label released issues workflow: don't override release tag if it exists

parent 9c4c16ac
......@@ -57,7 +57,7 @@ jobs:
outputs:
issues: ${{ steps.linked_issues.outputs.result }}
steps:
- name: Getting tags of the two latestest releases
- name: Getting tags of the two latest releases
id: tags
uses: actions/github-script@v7
env:
......@@ -192,6 +192,11 @@ jobs:
number
title
closed
labels(first: 5) {
nodes {
description
}
}
}
}
}
......@@ -215,6 +220,7 @@ jobs:
const issues = associatedPullRequests
.nodes
.filter(({ closingIssuesReferences: { nodes: issues } }) => !issues?.some(({ labels }) => labels?.nodes?.some(({ description }) => description.toLowerCase().startsWith('release'))))
.map(({ closingIssuesReferences: { nodes: issues } }) => issues.map(({ number }) => number))
.flat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment