File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,19 @@ jobs:
1818 name : Send Release Tweet
1919 runs-on : ubuntu-latest
2020 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
2127 - name : Poll release notes page on devsite
2228 run : node scripts/ci/poll_release_notes.js
2329 env :
2430 VERSION : ${{ github.event.inputs.version }}
2531 FORCE_PUBLISH : ${{ github.event.inputs.force }}
2632 - 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
2834 with :
2935 status : >
3036 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() {
5252 for ( let i = 0 ; i < MAX_ATTEMPTS ; i ++ ) {
5353 siteContent = await getData ( ) ;
5454 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.` ) ;
5657 return ;
5758 }
5859 if ( matches . includes ( `<a name="${ version } ">` ) && ! process . env . FORCE ) {
You can’t perform that action at this time.
0 commit comments