Skip to content

chore(test): fixed typos to trigger action #8

chore(test): fixed typos to trigger action

chore(test): fixed typos to trigger action #8

name: Test over new domains
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-domains:
if: ${{ github.event.head_commit.message =~ '(?i)test' }}

Check failure on line 12 in .github/workflows/test_on_domains.yml

View workflow run for this annotation

GitHub Actions / Test over new domains

Invalid workflow file

The workflow is not valid. .github/workflows/test_on_domains.yml (Line: 12, Col: 9): Unexpected symbol: '=~'. Located at position 34 within expression: github.event.head_commit.message =~ '(?i)test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > /dev/null
sudo dpkg -i google-chrome-stable_current_amd64.deb > /dev/null
sudo apt-get install -f -y > /dev/null
- name: install hxn
run: |
cargo build --release
mv -iv target/release/hxn /usr/local/bin/hxn
- name: Get domains
run: |
curl -s https://raw.githubusercontent.com/Azathothas/CertStream-Domains/main/Data/np_ccTLDs/certstream_domains_np_all_24h_httpx.txt | awk '{print $1}' | grep -i 'http' >> urls.txt
- name: Take screenshots
run: hxn -b $(which google-chrome) -f urls.txt -t 50 --timeout 100
- name: Count files in hxnshots
run: |
num_files=$(ls -1q hxnshots | wc -l)
echo "Number of files in hxnshots: $num_files"
- name: Calculate directory size
run: |
size=$(du -sh hxnshots | awk '{print $1}')
echo "Size of the directory: $size"