forked from Azure/amqpnetlite
-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 991 Bytes
/
merge-master.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
name: Merge from master
on:
schedule:
# scheduled for 00:00 every day
- cron: '57 23 * * *'
workflow_dispatch:
jobs:
merge-from-upstream-repo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.NFBOT_GITHUB_ACTIONS }}
- name: Merge from upstream repo
uses: aormsby/[email protected]
with:
target_sync_branch: nanoframework-dev
upstream_sync_branch: master
upstream_sync_repo: Azure/amqpnetlite
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits."
- name: Show value of 'has_new_commits'
run: echo ${{ steps.sync.outputs.has_new_commits }}