34 строки
951 B
YAML
34 строки
951 B
YAML
name: Merge from upstream
|
|
on:
|
|
schedule:
|
|
# scheduled for 00:00 every day
|
|
- cron: '55 23 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
merge-from-upstream-repo:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: master
|
|
fetch-depth: 0
|
|
|
|
- name: Merge from upstream repo
|
|
uses: aormsby/Fork-Sync-With-Upstream-action@v3.2
|
|
with:
|
|
target_sync_branch: master
|
|
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 }} |