Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update google_sheet_update.yml
Fix matching pattern to parse application file URL in sheet action
  • Loading branch information
alxs committed Aug 20, 2021
1 parent 0c649b5 commit f272536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/google_sheet_update.yml
Expand Up @@ -29,8 +29,8 @@ jobs:
link: ${{ steps.milestone_parser.outputs.application_document }}
with:
script: |
var uri_pattern = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;
let application_doc = process.env.link.match(uri_pattern);
var url_pattern = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/i;
let application_doc = process.env.link.match(url_pattern);
let application_doc_path = application_doc[0];
let application_doc_path_array = application_doc_path.split('/');
application_doc_path = application_doc_path_array[application_doc_path_array.length - 2] + '/' + application_doc_path_array[application_doc_path_array.length - 1];
Expand Down

0 comments on commit f272536

Please sign in to comment.