Retrieve domains #1
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: 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 . | |
git diff-index --quiet HEAD || git commit -m "Retrieve domains" # Note commit -am does not commit the pending directory | |
git push -q |