-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 1.09 KB
/
retrieve_domains.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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