-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.03 KB
/
difference.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
37
name: Check new upstream commits
on:
schedule:
# - cron: '0 7 * * 1,4,6'
# - cron: '10,20,30,40,50,57 * * * *'
#scheduled for 07:00 on monday and thursday.
jobs:
check_upstream_commits:
runs-on: ubuntu-latest
name: Check upstream latest commits
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Fetch upstream changes
id: sync
uses: ivanmilov/upstream_check_new_commits@v1
with:
upstream_repository: NomicFoundation/hardhat
upstream_branch: master
target_branch: main
- name: New commits found
if: ${{ steps.sync.outputs.has_new_commits == 'true' }}
run: echo "New commits were found to sync."
# - name: Notify if new commits
# if: ${{ steps.sync.outputs.has_new_commits == 'true' }}
# uses: ivanmilov/telegram_notify_action@v1
# with:
# api_key: ${{secrets.TELEGRAM_API_KEY}}
# chat_id: ${{secrets.TELEGRAM_CHAT_ID}}
# message: "New commit in upstream repo ${{github.repository}}"