Skip to content

Commit

Permalink
Merge pull request #26 from openziti-test-kitchen/update-build-notifier
Browse files Browse the repository at this point in the history
update the build to go 1.19 and update the notifier
  • Loading branch information
dovholuknf authored Jan 13, 2023
2 parents 304df94 + 5c5be0b commit 8fdba84
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.19

- if: ${{ matrix.arch=='linux-arm' }}
name: Install gcc for arm
Expand Down
28 changes: 21 additions & 7 deletions .github/workflows/mattermost-ziti-webhook.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
name: mattermost-ziti-webhook
name: ziti-mattermost-action-py
on:
create:
delete:
issues:
issue_comment:
pull_request_review:
types: [submitted]
pull_request_review_comment:
pull_request:
types: [opened, reopened]
push:
fork:
release:
types: [released]
workflow_dispatch:

jobs:
mattermost-ziti-webhook:
ziti-webhook:
runs-on: ubuntu-latest
name: POST Webhook
name: Ziti Mattermost Action - Py
steps:
- uses: openziti/ziti-webhook-action@v2
- uses: openziti/ziti-mattermost-action-py@main
if: ${{ env.ZHOOK_URL != null }}
env:
ZHOOK_URL: ${{ secrets.ZHOOK_URL }}
with:
ziti-id: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
webhook-url: ${{ secrets.ZITI_MATTERMOST_WEBHOOK_URL }}
webhook-secret: ${{ secrets.ZITI_MATTERMOST_WEBHOOK_SECRET }}
# Identity JSON containing key to access a Ziti network
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}

# URL to post the payload. Note that the `zitiId` must provide access to a service
# intercepting `my-mattermost-ziti-server`
webhookUrl: ${{ secrets.ZHOOK_URL }}

eventJson: ${{ toJson(github.event) }}
senderUsername: "GitHubZ"
destChannel: "dev-notifications"

0 comments on commit 8fdba84

Please sign in to comment.