Skip to content

Instantly share code, notes, and snippets.

@nashmaniac
Created June 7, 2020 17:02
Show Gist options
  • Save nashmaniac/668c47e1a80dbea562f720195cede77f to your computer and use it in GitHub Desktop.
Save nashmaniac/668c47e1a80dbea562f720195cede77f to your computer and use it in GitHub Desktop.
# truncated upper definition
# three job definition
jobs:
health-check-job: # health check job for testing and code formatting check
# truncated upper definition
- name: Run Test # running tests
run: pip manage.py test # we intentionally made an error. Instead of python we used pip.
- uses: nashmaniac/create-issue-action
if: ${{ failed() }} # only run when this job is failed.
name: Create Issue Action
with:
title: Build Failed
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: worflow-failed
body: Workflow failed for commit ${{github.sha}}
package-job: # package job for building and publishing docker images
# later portion is also truncated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment