-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.7 KB
/
upgrade-provider.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
env:
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
upgrade_provider:
if: ${{ (github.event.issue.user.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }}
name: upgrade-provider
runs-on: ubuntu-latest
steps:
- name: Call upgrade provider action
uses: pulumi/[email protected]
with:
kind: all
email: [email protected]
username: pulumi-bot
- env:
SLACK_CHANNEL: provider-upgrade-publish-status
SLACK_COLOR: "#7CFC00"
SLACK_ICON_EMOJI: ":taco:"
SLACK_MESSAGE: >-
Upgrade succeeded :heart_decoration:
PR opened at github.com/pulumi/${{ github.event.repository.name }}/pulls
SLACK_TITLE: ${{ github.event.repository.name }} upgrade result
SLACK_USERNAME: provider-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
name: Send Upgrade Success To Slack
uses: rtCamp/action-slack-notify@v2
- env:
SLACK_CHANNEL: provider-upgrade-publish-status
SLACK_COLOR: "#FF0000"
SLACK_ICON_EMOJI: ":taco:"
SLACK_MESSAGE: " Upgrade failed :x:"
SLACK_TITLE: ${{ github.event.repository.name }} upgrade result
SLACK_USERNAME: provider-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
if: failure()
name: Send Upgrade Failure To Slack
uses: rtCamp/action-slack-notify@v2
name: Upgrade provider
on:
issues:
types:
- opened
workflow_dispatch: {}