|
9 | 9 | jobs:
|
10 | 10 | test-domains:
|
11 | 11 |
|
12 |
| - if: contains(github.event.head_commit.message, 'test') |
| 12 | + if: ${{ github.event.head_commit.message =~ '(?i)test' }} |
13 | 13 |
|
14 | 14 | runs-on: ubuntu-latest
|
15 | 15 |
|
16 | 16 | steps:
|
17 |
| - - uses: actions/checkout@v3 |
18 |
| - - name: Install dependencies |
19 |
| - run: | |
20 |
| - wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > /dev/null |
21 |
| - sudo dpkg -i google-chrome-stable_current_amd64.deb > /dev/null |
22 |
| - sudo apt-get install -f -y > /dev/null |
23 |
| - - name: install hxn |
24 |
| - run: | |
25 |
| - cargo build --release |
26 |
| - mv -iv target/release/hxn /usr/local/bin/hxn |
27 |
| - - name: Get domains |
28 |
| - run: | |
29 |
| - 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 |
30 |
| - - name: Take screenshots |
31 |
| - run: hxn -b $(which google-chrome) -f urls.txt -t 50 --timeout 100 |
32 |
| - - name: Count files in hxnshots |
33 |
| - run: | |
34 |
| - num_files=$(ls -1q hxnshots | wc -l) |
35 |
| - echo "Number of files in hxnshots: $num_files" |
36 |
| - - name: Calculate directory size |
37 |
| - run: | |
38 |
| - size=$(du -sh hxnshots | awk '{print $1}') |
39 |
| - echo "Size of the directory: $size" |
| 17 | + - uses: actions/checkout@v3 |
| 18 | + - name: Install dependencies |
| 19 | + run: | |
| 20 | + wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > /dev/null |
| 21 | + sudo dpkg -i google-chrome-stable_current_amd64.deb > /dev/null |
| 22 | + sudo apt-get install -f -y > /dev/null |
| 23 | + - name: install hxn |
| 24 | + run: | |
| 25 | + cargo build --release |
| 26 | + mv -iv target/release/hxn /usr/local/bin/hxn |
| 27 | + - name: Get domains |
| 28 | + run: | |
| 29 | + 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 |
| 30 | + - name: Take screenshots |
| 31 | + run: hxn -b $(which google-chrome) -f urls.txt -t 50 --timeout 100 |
| 32 | + - name: Count files in hxnshots |
| 33 | + run: | |
| 34 | + num_files=$(ls -1q hxnshots | wc -l) |
| 35 | + echo "Number of files in hxnshots: $num_files" |
| 36 | + - name: Calculate directory size |
| 37 | + run: | |
| 38 | + size=$(du -sh hxnshots | awk '{print $1}') |
| 39 | + echo "Size of the directory: $size" |
0 commit comments