mirror of
https://github.com/foundry-rs/foundry.git
synced 2026-03-28 15:07:08 +00:00
16 lines
467 B
JavaScript
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);
|
|
}
|
|
};
|