Skip to content

Commit

Permalink
putting the py action back
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 4, 2024
1 parent 462760b commit 2cd2021
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/mattermost-ziti-webhook.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: mattermost-ziti-webhook

name: ziti-mattermost-action-py
on:
create:
delete:
Expand All @@ -14,17 +15,24 @@ on:
release:
types: [released]
workflow_dispatch:

jobs:
mattermost-ziti-webhook:
ziti-webhook:
runs-on: ubuntu-latest
name: POST Webhook
if: github.repository_owner == 'openziti-test-kitchen' && github.actor != 'dependabot[bot]'
env:
ZITI_LOG: 99
ZITI_NODEJS_LOG: 99
name: Ziti Mattermost Action - Py
steps:
- uses: openziti/ziti-webhook-action@main
- uses: openziti/ziti-mattermost-action-py@roll-back-ziti-sdk-py
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_MATTERMOSTI_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 2cd2021

Please sign in to comment.