Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ _Action:_ Run GitHub CodeQL action, upload result to GitHub security tab and Dat

_Trigger:_ Every week or manually.

_Action:_ Update the Grade dependencies and their locking files.
_Action:_ Create a PR updating the Grade dependencies and their locking files.

_Recovery:_ Manually trigger the action again.

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/add-milestone-to-pull-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ jobs:
return a.version.patch - b.version.patch
})
.pop()?.number
} else if (base.startsWith('release/v')) {
// Pick the milestone with the same title as the base branch
const version = base.substring(9)
} else if (base.startsWith('release/v') && base.endsWith('.x')) {
// Extract the minor version related to the base branch (e.g. "release/v1.2.x" -> "1.2.")
const version = base.substring(9, base.length - 1)
// Pick the milestone with title matching the extracted version
const versionMilestone = response.data
.find(milestone => milestone.title == version)
.find(milestone => milestone.title.startsWith(version))
if (!versionMilestone) {
core.setFailed(`Version milestone not found: ${version}`)
core.setFailed(`Milestone not found for minor version: ${version}`)
} else {
milestoneNumber = versionMilestone.number
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-gradle-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
gh pr create --title "Update Gradle dependencies" \
--body "This PR updates the Gradle dependencies. \n:warning: Don't forget to squash commits before merging :warning:" \
--body "This PR updates the Gradle dependencies. ⚠️ Don't forget to squash commits before merging. ⚠️" \
--base master \
--head $BRANCH_NAME \
--label "tag: dependencies" \
Expand Down