forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 34
37 lines (35 loc) · 1.05 KB
/
merge-upstream.yaml
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: Scheduled Merge Upstream
on:
workflow_dispatch:
schedule:
- cron: '23 0/3 * * *'
jobs:
merge_upstream:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 0
- name: Merge Upstream
uses: exions/merge-upstream@v1
with:
upstream: open-telemetry/opentelemetry-demo
upstream-branch: main
branch: main
notify-failure:
needs: [merge_upstream]
if: needs.merge_upstream.result != 'success'
runs-on: ubuntu-latest
steps:
- name: Slack notification
env:
SLACK_WEBHOOK: ${{ secrets.OTELSLACKCHANNELWEBHOOK }}
SLACK_UNFURL_LINKS: "true"
uses: AlexanderWert/[email protected]
with:
args: |
:wave:
Auto-merge of the <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|elastic/opentelemetry-demo> repository with the upstream failed!
Manual resolution of the merge conflicts is required!