Skip to content

Commit 5b71386

Browse files
Release v1.9.6 (#454)
Co-authored-by: simoneb <[email protected]>
1 parent 2f61831 commit 5b71386

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

dist/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5581,8 +5581,11 @@ function logRepoWarning() {
55815581

55825582
// Handle composite actions
55835583
if (actionPath && actionPath.includes('/nearform/')) {
5584-
const actionRepoName = actionPath.split('/nearform/')[1]
5585-
return warning(actionRepoName)
5584+
const [actionRepoName, actionRepoVersion] = actionPath
5585+
.split('/nearform/')[1]
5586+
.split('/')
5587+
5588+
return warning(actionRepoName, actionRepoVersion)
55865589
}
55875590

55885591
const [repoOrg, repoName] = actionRepo.split('/')
@@ -5595,14 +5598,15 @@ function logRepoWarning() {
55955598
/**
55965599
* Simple function to avoid the repetition of the message
55975600
*/
5598-
function warning(repoName) {
5601+
function warning(repoName, repoVersion) {
5602+
const nameWithVersion = repoVersion ? `${repoName}@${repoVersion}` : repoName
55995603
return core.warning(
56005604
`The '${repoName}' action, no longer exists under the '${oldOrg}' organisation.\n` +
56015605
`Please update it to '${newOrg}', you can do this\n` +
56025606
`by updating your Github Workflow file from:\n\n` +
5603-
` uses: '${oldOrg}/${repoName}'\n\n` +
5607+
` uses: '${oldOrg}/${nameWithVersion}'\n\n` +
56045608
`to:\n\n` +
5605-
` uses: '${newOrg}/${repoName}'\n\n`
5609+
` uses: '${newOrg}/${nameWithVersion}'\n\n`
56065610
)
56075611
}
56085612

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-action-notify-release",
3-
"version": "1.9.5",
3+
"version": "1.9.6",
44
"description": "Github action for notifying of a pending release",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)