Skip to content

Commit

Permalink
Merge pull request #1 from pagvac/pagvac-patch-1
Browse files Browse the repository at this point in the history
Specify your own domain when manually running workflow.
  • Loading branch information
pagvac authored Aug 20, 2024
2 parents ea33a4e + 13ff54a commit 57d4a3c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/dnsmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@ name: dnsmap

on:
push:
branches: [ "main" ]
branches: [ "main", "pagvac-patch-1" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '45 17 * * 3'
workflow_dispatch:
inputs:
domain:
description: 'your domain name'
default: 'github.com'
type: string
required: false


jobs:
dnsmap-command:
Expand All @@ -17,5 +24,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run dnsmap
- name: Run dnsmap against github.com
if: "${{ github.event.inputs.domain == '' }}"
run: python dnsmap.py github.com
- name: Run dnsmap against user-supplied domain name
if: "${{ github.event.inputs.domain }}"
run: python dnsmap.py ${{ github.event.inputs.domain }}

0 comments on commit 57d4a3c

Please sign in to comment.