Skip to content

Commit a874316

Browse files
Fix Action-Test: pass EventJson input instead of relying on GITHUB_ENV override
1 parent 6cbe9d8 commit a874316

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
}
6161
}
6262
}
63+
EventJson: '{"pull_request":{"head":{"ref":"feat/test-patch"},"labels":[{"name":"patch"}]}}'
6364

6465
- name: Verify - Patch bump
6566
shell: pwsh
@@ -135,6 +136,7 @@ jobs:
135136
}
136137
}
137138
}
139+
EventJson: '{"pull_request":{"head":{"ref":"feat/test-minor"},"labels":[{"name":"minor"}]}}'
138140

139141
- name: Verify - Minor bump
140142
shell: pwsh
@@ -210,6 +212,7 @@ jobs:
210212
}
211213
}
212214
}
215+
EventJson: '{"pull_request":{"head":{"ref":"feat/test-major"},"labels":[{"name":"major"}]}}'
213216

214217
- name: Verify - Major bump
215218
shell: pwsh
@@ -283,6 +286,7 @@ jobs:
283286
}
284287
}
285288
}
289+
EventJson: '{"pull_request":{"head":{"ref":"feat/test-autopatch"},"labels":[]}}'
286290

287291
- name: Verify - Auto-patch
288292
shell: pwsh
@@ -424,6 +428,7 @@ jobs:
424428
}
425429
}
426430
}
431+
EventJson: '{"pull_request":{"head":{"ref":"feat/test-none"},"labels":[{"name":"patch"}]}}'
427432

428433
- name: Verify - None release type
429434
shell: pwsh

0 commit comments

Comments
 (0)