mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
Merge pull request #28 from csexton/output-url
Add the release HTML URL to outputs
This commit is contained in:
commit
56b4c8a8ef
3 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,9 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
env:
|
env:
|
||||||
'GITHUB_TOKEN': 'As provided by Github Actions'
|
'GITHUB_TOKEN': 'As provided by Github Actions'
|
||||||
|
outputs:
|
||||||
|
url:
|
||||||
|
description: 'URL to the Release HTML Page'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'lib/main.js'
|
main: 'lib/main.js'
|
||||||
|
|
|
@ -29,6 +29,7 @@ function run() {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||||
|
core_1.setOutput('url', rel.html_url);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core_1.setFailed(error.message);
|
core_1.setFailed(error.message);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { paths, parseConfig, isTag } from "./util";
|
import { paths, parseConfig, isTag } from "./util";
|
||||||
import { release, upload, GitHubReleaser } from "./github";
|
import { release, upload, GitHubReleaser } from "./github";
|
||||||
import { setFailed } from "@actions/core";
|
import { setFailed, setOutput } from "@actions/core";
|
||||||
import { GitHub } from "@actions/github";
|
import { GitHub } from "@actions/github";
|
||||||
import { env } from "process";
|
import { env } from "process";
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ async function run() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||||
|
setOutput('url', rel.html_url);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setFailed(error.message);
|
setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue