-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.01 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
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