We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e3a67 commit aa0b987Copy full SHA for aa0b987
.github/workflows/release.yml
@@ -91,7 +91,14 @@ jobs:
91
script: |
92
const owner = context.repo.owner;
93
const repo = context.repo.repo;
94
- const tag = context.ref_name;
+ let tag = context.ref_name || '';
95
+ if ((!tag || !tag.length) && context.ref && context.ref.startsWith('refs/tags/')) {
96
+ tag = context.ref.substring('refs/tags/'.length);
97
+ }
98
+ if (!tag || !tag.length) {
99
+ core.setFailed('无法解析当前构建对应的 tag 名称。');
100
+ return;
101
102
const patterns = [
103
/latest\.json$/,
104
/_x64-setup\.exe$/,
0 commit comments