Skip to content

Retrieve domains

Retrieve domains #15

name: Retrieve domains
run-name: Retrieve domains
on:
workflow_dispatch:
workflow_call:
permissions:
contents: write
jobs:
retrieve-domains:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: retrieve_domains.sh
env:
GOOGLE_SEARCH_ID: ${{ secrets.SEARCH_ID }}
GOOGLE_SEARCH_ID_2: ${{ secrets.SEARCH_ID2 }}
GOOGLE_SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }}
GOOGLE_SEARCH_API_KEY_2: ${{ secrets.SEARCH_API_KEY2 }}
AA419_API_ID: ${{ secrets.AA419_API_ID }}
run: bash functions/retrieve_domains.sh
- name: Push
if: ${{ success() || failure() }}
run: |
git config user.email ${{ vars.GIT_EMAIL }}
git config user.name ${{ vars.GIT_USERNAME }}
git add .
# Note commit -am does not commit the pending directory
git diff-index --quiet HEAD || git commit -m "Retrieve domains"
git push -q