We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c9147 commit 188a427Copy full SHA for 188a427
1 file changed
.github/workflows/sync-pr-labels.yml
@@ -57,13 +57,17 @@ jobs:
57
description: label.description
58
});
59
} catch (e) {
60
- await github.rest.issues.createLabel({
61
- owner: context.repo.owner,
62
- repo: context.repo.repo,
63
- name: label.name,
64
- color: label.color,
65
- description: label.description
66
- });
+ if (e.status === 404) {
+ await github.rest.issues.createLabel({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ name: label.name,
+ color: label.color,
+ description: label.description
67
+ });
68
+ } else {
69
+ throw e;
70
+ }
71
}
72
73
0 commit comments