-
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 905 Bytes
/
retrieve.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
name: Retrieve domains
run-name: Retrieve domains
on:
workflow_dispatch:
schedule:
# Daily at 12:30am (GMT+8)
- cron: '30 16 * * *'
jobs:
retrieve-domains:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # Run using PAT to correctly trigger build workfow
- name: retrieve.sh
env:
google_search_id: ${{ secrets.SEARCH_ID }}
google_search_api_key: ${{ secrets.SEARCH_API_KEY }}
aa419_api_id: ${{ secrets.AA419_API_ID }}
run: bash retrieve.sh
- name: Push
if: always()
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"
git push -q