Add update-only configuration option (#92)

This commit is contained in:
Alex Hatzenbuhler 2023-05-02 17:11:22 -05:00 committed by GitHub
parent 387ece43e3
commit 1dff58b1a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 3311 additions and 10787 deletions

View file

@ -44,6 +44,7 @@ async function getInputs() {
const proxyUrl = core.getInput('proxy-url', { required: false }).replace(/\/$/, '');
const allowRepeats = core.getInput('allow-repeats', { required: true }) === 'true';
const refreshMessagePosition = core.getInput('refresh-message-position', { required: false }) === 'true';
const updateOnly = core.getInput('update-only', { required: false }) === 'true';
if (messageInput && messagePath) {
throw new Error('must specify only one, message or message-path');
}
@ -87,6 +88,7 @@ async function getInputs() {
commitSha: github.context.sha,
owner: repoOwner || payload.repo.owner,
repo: repoName || payload.repo.repo,
updateOnly: updateOnly,
};
}
exports.getInputs = getInputs;