Skip to content

Commit 52878f9

Browse files
committed
Fix schema
1 parent ffd3e39 commit 52878f9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/release-log.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release:
10-
name: Release
10+
name: Send PR number to tracker endpoint
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repo

scripts/ci/log-changesets.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ async function logChangesets() {
2424

2525
const prPayload = require(process.env.GITHUB_EVENT_PATH);
2626

27-
console.log('prPayload', JSON.stringify(prPayload));
27+
console.log(prPayload.pull_request.title);
28+
console.log(prPayload.pull_request.number);
29+
console.log(prPayload.pull_request.body);
2830

29-
// if (prPayload.title !== 'Version Packages') return;
31+
// if (prPayload.pull_request.title !== 'Version Packages') return;
3032

31-
const matches = prPayload.body.match(/## firebase@([\d\.]+)/);
33+
const matches = prPayload.pull_request.body.match(/## firebase@([\d\.]+)/);
3234
const version = matches[1];
3335

3436
const data = JSON.stringify({
3537
version,
36-
pr: prPayload.number
38+
pr: prPayload.pull_request.number
3739
});
3840

3941
const options = {

0 commit comments

Comments
 (0)