Skip to content

Commit 05a264c

Browse files
fix: typo in slack notification and reformat workflow files (#24)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 8f1c8a9 commit 05a264c

File tree

4 files changed

+39
-40
lines changed

4 files changed

+39
-40
lines changed

.github/workflows/assignproject.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Assign Project
2+
23
on:
34
issues:
45
types: [opened]
6+
57
jobs:
6-
createCard:
8+
create_card:
79
runs-on: ubuntu-latest
810
steps:
9-
- name: Create project card
11+
- name: create project card
1012
uses: peter-evans/create-or-update-project-card@v1
1113
with:
1214
token: ${{ secrets.MOVE2KUBE_PATOKEN }}

.github/workflows/build.yml

+31-32
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,38 @@ name: Build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66

77
jobs:
8-
9-
image-build:
10-
name: Image Build
8+
image_build:
9+
name: Image build
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v2
14-
- name: Build
15-
run: |
16-
make docker-build
17-
make bundle-build
18-
- name: Push image to quay
19-
run: |
20-
echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
21-
make docker-push
22-
docker push quay.io/konveyor/move2kube-bundle:latest
23-
- name: Success Slack Notification
24-
uses: rtCamp/action-slack-notify@v2
25-
env:
26-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
27-
SLACK_ICON: https://github.com/actions.png?size=48
28-
SLACK_MESSAGE: 'Built and Pushed quay.io/konveyor/move2kube-operator:latest'
29-
SLACK_TITLE: Success
30-
SLACK_USERNAME: GitHubActions
31-
- name: Failure Slack Notification
32-
uses: rtCamp/action-slack-notify@v2
33-
if: failure()
34-
env:
35-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
36-
SLACK_COLOR: '#BD3232'
37-
SLACK_ICON: https://github.com/actions.png?size=48
38-
SLACK_MESSAGE: 'Failed to build and push image quay.io/konveyor/move2kube-operator:latest'
39-
SLACK_TITLE: Failed
40-
SLACK_USERNAME: GitHubActions
12+
- uses: actions/checkout@v2
13+
- name: build
14+
run: |
15+
make docker-build
16+
make bundle-build
17+
- name: push images to quay
18+
run: |
19+
echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
20+
make docker-push
21+
docker push quay.io/konveyor/move2kube-bundle:latest
22+
- name: success slack notification
23+
uses: rtCamp/action-slack-notify@v2
24+
env:
25+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
26+
SLACK_ICON: https://github.com/actions.png?size=48
27+
SLACK_MESSAGE: "Built and pushed quay.io/konveyor/move2kube-operator:latest"
28+
SLACK_TITLE: Success
29+
SLACK_USERNAME: GitHubActions
30+
- name: failure slack notification
31+
uses: rtCamp/action-slack-notify@v2
32+
if: failure()
33+
env:
34+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
35+
SLACK_COLOR: "#BD3232"
36+
SLACK_ICON: https://github.com/actions.png?size=48
37+
SLACK_MESSAGE: "Failed to build and push image quay.io/konveyor/move2kube-operator:latest"
38+
SLACK_TITLE: Failed
39+
SLACK_USERNAME: GitHubActions

.github/workflows/prbuild.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ name: PR Build
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [master]
66

77
jobs:
8-
98
build:
109
name: Build
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v2
14-
- name: Build
15-
run: make docker-build
12+
- uses: actions/checkout@v2
13+
- run: make docker-build

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060
env:
6161
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
6262
SLACK_ICON: https://github.com/actions.png?size=48
63-
SLACK_MESSAGE: "Release draft for move2kube-operator ${{ steps.only_tag.outputs.tag }} created: https://github.com/konveyor/move2kube-ui/releases"
63+
SLACK_MESSAGE: "Release draft for move2kube-operator ${{ steps.only_tag.outputs.tag }} created: https://github.com/konveyor/move2kube-operator/releases"
6464
SLACK_TITLE: Success
6565
SLACK_USERNAME: GitHubActions

0 commit comments

Comments
 (0)