1616 - name : Bump version
1717 id : bump_version
1818 run : echo "::set-output name=version::$(ruby .github/version.rb ${{ github.event.client_payload.version }})"
19-
2019 - name : Clean repo
2120 run : ruby .github/clean.rb
22-
2321 - name : Install openapi-generator-cli
2422 run : |
2523 npm install @openapitools/openapi-generator-cli -g
3028 -g typescript-axios \
3129 -c ./openapi/config.yml \
3230 -t ./openapi/templates
33-
3431 - name : Checkout master
3532 run : git checkout master
36-
3733 - name : Create commit
3834 run : |
3935 git config user.name "devexperience"
@@ -42,11 +38,22 @@ jobs:
4238 git commit -m "Generated version ${{ steps.bump_version.outputs.version }}
4339
4440 This commit was automatically created by a GitHub Action to generate version ${{ steps.bump_version.outputs.version }} of this library."
45-
4641 - name : Push to master
4742 run : git push origin master
4843 env :
4944 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ - name : Slack notification
46+ uses : ravsamhq/notify-slack-action@v2
47+ if : always()
48+ with :
49+ status : ${{ job.status }}
50+ token : ${{ secrets.GITHUB_TOKEN }}
51+ notification_title : " {repo}: {workflow} workflow"
52+ message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
53+ footer : " <{workflow_url}|View Workflow>"
54+ notify_when : " failure"
55+ env :
56+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
5057 Publish :
5158 runs-on : ubuntu-latest
5259 steps :
5966 - run : npm publish
6067 env :
6168 NODE_AUTH_TOKEN : ${{secrets.NPM_AUTH_TOKEN}}
69+ - name : Slack notification
70+ uses : ravsamhq/notify-slack-action@v2
71+ if : always()
72+ with :
73+ status : ${{ job.status }}
74+ token : ${{ secrets.GITHUB_TOKEN }}
75+ notification_title : " {repo}: {workflow} workflow"
76+ message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
77+ footer : " <{workflow_url}|View Workflow>"
78+ notify_when : " failure"
79+ env :
80+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
6281 Release :
6382 runs-on : ubuntu-latest
6483 steps :
7695 gh release create "v${{ steps.read_version.outputs.version }}"
7796 env :
7897 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98+ - name : Slack notification
99+ uses : ravsamhq/notify-slack-action@v2
100+ if : always()
101+ with :
102+ status : ${{ job.status }}
103+ token : ${{ secrets.GITHUB_TOKEN }}
104+ notification_title : " {repo}: {workflow} workflow"
105+ message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
106+ footer : " <{workflow_url}|View Workflow>"
107+ notify_when : " failure"
108+ env :
109+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
0 commit comments