We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 830631e commit e1bdba1Copy full SHA for e1bdba1
1 file changed
.github/scripts/update-major-tag.js
@@ -29,7 +29,7 @@ export default async function updateMajorTag({ github, context }) {
29
});
30
console.log(`Updated ${ref} to ${sha}`);
31
} catch (error) {
32
- if (error.status === 422) {
+ if (error?.status === 404 || error?.status === 422) {
33
await github.rest.git.createRef({
34
owner: context.repo.owner,
35
repo: context.repo.repo,
0 commit comments