bump analytics-browser to 2.11.8 (#59) #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: analytics-browser-gtm Script Check | |
on: | |
push: | |
branches: | |
- v3.x | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- v3.x | |
jobs: | |
script-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out git repository | |
uses: actions/checkout@v3 | |
- name: Scan for analytics-browser-gtm script | |
run: | | |
if grep -Po 'https://cdn\.amplitude\.com/libs/analytics-browser-gtm-\d+\.\d+\.\d+-min\.js\.gz' src/amplitude-wrapper.js; then | |
echo "Amplitude analytics-browser-gtm found in file" | |
else | |
echo "No specific Amplitude URL found in file" | |
exit 1 # Missing Amplitude analytics-browser-gtm script | |
exit 1 | |
fi |