Retrieve domains #257
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 }} | |
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
run: bash scripts/retrieve_domains.sh | |
- name: Push | |
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 "CI: retrieve domains" | |
git push -q |