- retain package-lock.json, and drop ci change
This commit is contained in:
@@ -78,24 +78,6 @@ jobs:
|
|||||||
CHANGELOG: ${{ steps.complex_release.outputs.changelog }}
|
CHANGELOG: ${{ steps.complex_release.outputs.changelog }}
|
||||||
run: echo "CHANGELOG"
|
run: echo "CHANGELOG"
|
||||||
|
|
||||||
# Showcases a more complex configuration, providing a configuration, and specifically referencing owner, repo, from, to tag and base URL
|
|
||||||
- name: "Complex Configuration with base URL"
|
|
||||||
id: complex_release_baseurl
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
configuration: "configs/configuration_complex.json"
|
|
||||||
owner: "mikepenz"
|
|
||||||
repo: "release-changelog-builder-action"
|
|
||||||
fromTag: "v0.0.1"
|
|
||||||
toTag: "v0.0.3"
|
|
||||||
baseUrl: "https://corp.globant.com/api/v3"
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Echo Complex Configuration With baseUrl Changelog
|
|
||||||
env:
|
|
||||||
CHANGELOG: ${{ steps.complex_release_baseurl.outputs.changelog }}
|
|
||||||
run: echo "CHANGELOG"
|
|
||||||
|
|
||||||
# Showcases the capability to generate the changelog for an external repository provided
|
# Showcases the capability to generate the changelog for an external repository provided
|
||||||
- name: "External Repo Configuration"
|
- name: "External Repo Configuration"
|
||||||
id: external_changelog
|
id: external_changelog
|
||||||
|
|||||||
+3
-6
@@ -357,7 +357,6 @@ function run() {
|
|||||||
const configurationFile = core.getInput('configuration');
|
const configurationFile = core.getInput('configuration');
|
||||||
const configuration = (0, utils_1.resolveConfiguration)(repositoryPath, configurationFile);
|
const configuration = (0, utils_1.resolveConfiguration)(repositoryPath, configurationFile);
|
||||||
// read in repository inputs
|
// read in repository inputs
|
||||||
const baseUrl = core.getInput('baseUrl');
|
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const owner = core.getInput('owner') || github.context.repo.owner;
|
const owner = core.getInput('owner') || github.context.repo.owner;
|
||||||
const repo = core.getInput('repo') || github.context.repo.repo;
|
const repo = core.getInput('repo') || github.context.repo.repo;
|
||||||
@@ -368,7 +367,7 @@ function run() {
|
|||||||
const ignorePreReleases = core.getInput('ignorePreReleases') === 'true';
|
const ignorePreReleases = core.getInput('ignorePreReleases') === 'true';
|
||||||
const failOnError = core.getInput('failOnError') === 'true';
|
const failOnError = core.getInput('failOnError') === 'true';
|
||||||
const commitMode = core.getInput('commitMode') === 'true';
|
const commitMode = core.getInput('commitMode') === 'true';
|
||||||
const result = yield new releaseNotesBuilder_1.ReleaseNotesBuilder(baseUrl, token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration).build();
|
const result = yield new releaseNotesBuilder_1.ReleaseNotesBuilder(token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration).build();
|
||||||
core.setOutput('changelog', result);
|
core.setOutput('changelog', result);
|
||||||
// write the result in changelog to file if possible
|
// write the result in changelog to file if possible
|
||||||
const outputFile = core.getInput('outputFile');
|
const outputFile = core.getInput('outputFile');
|
||||||
@@ -766,8 +765,7 @@ const tags_1 = __nccwpck_require__(7532);
|
|||||||
const utils_1 = __nccwpck_require__(918);
|
const utils_1 = __nccwpck_require__(918);
|
||||||
const transform_1 = __nccwpck_require__(1644);
|
const transform_1 = __nccwpck_require__(1644);
|
||||||
class ReleaseNotesBuilder {
|
class ReleaseNotesBuilder {
|
||||||
constructor(baseUrl, token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration) {
|
constructor(token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration) {
|
||||||
this.baseUrl = baseUrl;
|
|
||||||
this.token = token;
|
this.token = token;
|
||||||
this.repositoryPath = repositoryPath;
|
this.repositoryPath = repositoryPath;
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
@@ -801,8 +799,7 @@ class ReleaseNotesBuilder {
|
|||||||
core.endGroup();
|
core.endGroup();
|
||||||
// load octokit instance
|
// load octokit instance
|
||||||
const octokit = new rest_1.Octokit({
|
const octokit = new rest_1.Octokit({
|
||||||
auth: `token ${this.token || process.env.GITHUB_TOKEN}`,
|
auth: `token ${this.token || process.env.GITHUB_TOKEN}`
|
||||||
baseUrl: `${this.baseUrl || "https://api.github.com"}`
|
|
||||||
});
|
});
|
||||||
// ensure proper from <-> to tag range
|
// ensure proper from <-> to tag range
|
||||||
core.startGroup(`🔖 Resolve tags`);
|
core.startGroup(`🔖 Resolve tags`);
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Generated
+6804
-9
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user