Skip to content

Commit

Permalink
Merge branch 'project-codeflare:main' into fix_preempt1
Browse files Browse the repository at this point in the history
  • Loading branch information
asm582 authored Oct 9, 2023
2 parents 3c3e384 + 8795078 commit f8bdcd3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/update-codeflare-operator.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Update CodeFlare operator with latest changes from MCAD

on:
workflow_run:
workflows: [Build and Push dev MCAD image into Quay]
types:
- completed
push:
branches:
- 'main'

jobs:
update-codeflare-operator:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.repository == 'project-codeflare/multi-cluster-app-dispatcher'
if: github.repository == 'project-codeflare/multi-cluster-app-dispatcher'

steps:
- name: checkout MCAD code
Expand Down Expand Up @@ -58,3 +57,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
working-directory: operator

- name: Post notification about failure to a Slack channel
if: failure()
uses: slackapi/[email protected]
with:
channel-id: "codeflare-nightlies"
slack-message: "MCAD to CodeFlare operator upgrade action failed, <https://github.com/project-codeflare/multi-cluster-app-dispatcher/actions/workflows/update-codeflare-operator.yml|View workflow runs>"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit f8bdcd3

Please sign in to comment.