Skip to content

.github/workflows/automerge.yml #614

.github/workflows/automerge.yml

.github/workflows/automerge.yml #614

Workflow file for this run

on:
status: {}
check_suite:
types:
- completed
permissions:
id-token: write
jobs:
automerge-action:
runs-on: ubuntu-latest
name: automerge
steps:
- name: checkout
uses: actions/checkout@v3
- name: automerge-action
id: automerge-action
uses: conda-forge/automerge-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
rerendering_github_token: ${{ secrets.RERENDERING_GITHUB_TOKEN }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
role-to-assume: arn:aws:iam::312598714048:role/my-github-actions-role
aws-region: us-east-1
role-skip-session-tagging: true
- name: send email when merge fail
if: success()
uses: dsfx3d/action-aws-ses@v1
with:
# email subject
subject: 'sagemaker-python-sdk-feedstock merge fail notification'
# email body as text
body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
# comma-separated string, send email to
to: '[email protected]'
# from email name
from: '[email protected]'