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 python \
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 :
6370 with :
6471 user : __token__
6572 password : ${{ secrets.PYPI_API_TOKEN }}
73+ - name : Slack notification
74+ uses : ravsamhq/notify-slack-action@v2
75+ if : always()
76+ with :
77+ status : ${{ job.status }}
78+ token : ${{ secrets.GITHUB_TOKEN }}
79+ notification_title : " {repo}: {workflow} workflow"
80+ message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
81+ footer : " <{workflow_url}|View Workflow>"
82+ notify_when : " failure"
83+ env :
84+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
6685 Release :
6786 runs-on : ubuntu-latest
6887 steps :
8099 gh release create "v${{ steps.read_version.outputs.version }}"
81100 env :
82101 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102+ - name : Slack notification
103+ uses : ravsamhq/notify-slack-action@v2
104+ if : always()
105+ with :
106+ status : ${{ job.status }}
107+ token : ${{ secrets.GITHUB_TOKEN }}
108+ notification_title : " {repo}: {workflow} workflow"
109+ message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
110+ footer : " <{workflow_url}|View Workflow>"
111+ notify_when : " failure"
112+ env :
113+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
0 commit comments