Scheduled Merge Upstream #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | |