File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,19 @@ jobs:
18
18
name : Send Release Tweet
19
19
runs-on : ubuntu-latest
20
20
steps :
21
+ - name : Checkout Repo
22
+ uses : actions/checkout@master
23
+ - name : Setup Node.js 14.x
24
+ uses : actions/setup-node@master
25
+ with :
26
+ node-version : 14.x
21
27
- name : Poll release notes page on devsite
22
28
run : node scripts/ci/poll_release_notes.js
23
29
env :
24
30
VERSION : ${{ github.event.inputs.version }}
25
31
FORCE_PUBLISH : ${{ github.event.inputs.force }}
26
32
- name : Post to Twitter
27
- uses : firebase/firebase-admin-node/.github/actions/send-tweet
33
+ uses : firebase/firebase-admin-node/.github/actions/send-tweet@master
28
34
with :
29
35
status : >
30
36
v${{github.event.inputs.version}} of @Firebase JavaScript client for Web / Node.js is available.
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ async function pollReleaseNotes() {
52
52
for ( let i = 0 ; i < MAX_ATTEMPTS ; i ++ ) {
53
53
siteContent = await getData ( ) ;
54
54
const matches = siteContent . match ( / < a n a m e = " \d + \. \d + .\d + " > / g) ;
55
- if ( matches [ 0 ] === version ) {
55
+ if ( matches [ 0 ] === `<a name="${ version } ">` ) {
56
+ console . log ( `Found ${ version } in release notes.` ) ;
56
57
return ;
57
58
}
58
59
if ( matches . includes ( `<a name="${ version } ">` ) && ! process . env . FORCE ) {
You can’t perform that action at this time.
0 commit comments