Skip to content

Commit

Permalink
Update deploy.yml (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwallace2nhs authored Jan 21, 2025
2 parents eb8858b + b4066ab commit 6b262d7
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,32 +88,32 @@ jobs:
commit_message: rebuild graphs, javadoc and binary distribution at
# note the commit SHA is appended automatically

- name: Push samples to sample repo
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.PUSH_SAMPLE_DATA_SSH_KEY }}
with:
source-directory: 'samples'
destination-github-username: 'synthetichealth'
destination-repository-name: 'synthea-sample-data'
target-directory: 'downloads/latest'
target-branch: main
# - name: Push samples to sample repo
# uses: cpina/github-action-push-to-another-repository@main
# env:
# SSH_DEPLOY_KEY: ${{ secrets.PUSH_SAMPLE_DATA_SSH_KEY }}
# with:
# source-directory: 'samples'
# destination-github-username: 'synthetichealth'
# destination-repository-name: 'synthea-sample-data'
# target-directory: 'downloads/latest'
# target-branch: main

- name: Slack Notification on Failure
uses: 8398a7/action-slack@v3
if: failure()
with:
status: custom
job_name: Deploy
author_name: Deploy Workflow
fields: workflow,commit,repo,author,took
# see https://action-slack.netlify.app/usecase/02-custom for custom payload info
custom_payload: |
{
attachments: [{
color: 'danger',
text: `${process.env.AS_WORKFLOW} -- (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@master by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# - name: Slack Notification on Failure
# uses: 8398a7/action-slack@v3
# if: failure()
# with:
# status: custom
# job_name: Deploy
# author_name: Deploy Workflow
# fields: workflow,commit,repo,author,took
# # see https://action-slack.netlify.app/usecase/02-custom for custom payload info
# custom_payload: |
# {
# attachments: [{
# color: 'danger',
# text: `${process.env.AS_WORKFLOW} -- (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@master by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`,
# }]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 6b262d7

Please sign in to comment.