Skip to content

Commit de5b8f6

Browse files
committed
docs: added badge with status
1 parent b9c6869 commit de5b8f6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,16 @@ jobs:
5959
run: npx semantic-release
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
63+
- name: Create issue using REST API
64+
if: failure() && github.event_name == 'push'
65+
run: |
66+
curl --request POST \
67+
--url https://api.github.com/repos/${{ github.repository }}/issues \
68+
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
69+
--header 'content-type: application/json' \
70+
--data '{
71+
"title": "Automated issue for commit: ${{ github.sha }}",
72+
"body": "This issue was automatically created by the GitHub Action workflow **${{ github.workflow }}**. \n\n The commit hash was: _${{ github.sha }}_."
73+
}' \
74+
--fail

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![](https://github.com/codemash-io/CodeMash.Js/workflows/CI/badge.svg?branch=master&event=push)
2+
13
# CodeMash.Js
24

35
CodeMash for javascript developers. All the documentation can be found [here](https://docs.codemash.io)

0 commit comments

Comments
 (0)