Files
DaniPopes 860d083183 fmt: all (#3398)
* fmt: all

* fmt: rest

* fmt: missing
2022-09-28 18:28:26 +02:00

16 lines
467 B
JavaScript

module.exports = async ({ github, context }, tagName) => {
try {
await github.rest.git.updateRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `tags/${tagName}`,
sha: context.sha,
force: true,
});
} catch (err) {
console.error(`Failed to move nightly tag.`);
console.error(`This should only happen the first time.`);
console.error(err);
}
};