Created
June 7, 2020 17:02
-
-
Save nashmaniac/668c47e1a80dbea562f720195cede77f to your computer and use it in GitHub Desktop.
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
# 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