@@ -20,31 +20,33 @@ jobs:
2020 runs-on : ubuntu-latest
2121 name : POST Webhook
2222 steps :
23- - uses : actions/checkout@v4
24- - name : run hook directly
25- if : |
26- github.repository_owner == 'openziti'
27- && ((github.event_name != 'pull_request_review')
28- || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved'))
29- env :
30- INPUT_ZITIID : ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
31- INPUT_WEBHOOKURL : ${{ secrets.ZHOOK_URL }}
32- INPUT_EVENTJSON : ${{ toJson(github.event) }}
33- INPUT_SENDERUSERNAME : GitHubZ
34- INPUT_DESTCHANNEL : dev-notifications
35- INPUT_SENDERICONURL : https://github.com/fluidicon.png
36- ZITI_LOG : 6
37- TLSUV_DEBUG : 6
38- shell : bash
39- run : |
40- set -o pipefail
41- set -o xtrace
42- pip install --user --upgrade requests openziti==1.0.0
43- echo "DEBUG: PYTHONPATH=${PYTHONPATH:-}"
44- python ./zhook.py
45-
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ # - name: Run Python Script Directly
27+ # if: |
28+ # github.repository_owner == 'openziti'
29+ # && ((github.event_name != 'pull_request_review')
30+ # || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved'))
31+ # env:
32+ # INPUT_ZITIID: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
33+ # INPUT_WEBHOOKURL: ${{ secrets.ZHOOK_URL }}
34+ # INPUT_EVENTJSON: ${{ toJson(github.event) }}
35+ # INPUT_SENDERUSERNAME: GitHubZ
36+ # INPUT_DESTCHANNEL: dev-notifications
37+ # INPUT_SENDERICONURL: https://github.com/fluidicon.png
38+ # ZITI_LOG: 6
39+ # TLSUV_DEBUG: 6
40+ # shell: bash
41+ # run: |
42+ # set -o pipefail
43+ # set -o xtrace
44+ # pip install --user --upgrade requests openziti==1.0.0
45+ # echo "DEBUG: PYTHONPATH=${PYTHONPATH:-}"
46+ # python ./zhook.py
47+
4648 - uses : ./
47- name : run the action from the checkout
49+ name : Run as a GH Action from the Local Checkout
4850 if : |
4951 github.repository_owner == 'openziti'
5052 && ((github.event_name != 'pull_request_review')
0 commit comments