This commit is contained in:
D Ther 2020-10-25 02:31:19 +06:30
parent 328a6c3ba2
commit c088a98a3b
No known key found for this signature in database
GPG key ID: 4729D840D81DC783
7 changed files with 42 additions and 63 deletions

View file

@ -13,38 +13,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
id: slug
- name: Chat Setup
uses: DTherHtun/google-chat-action@v0.6
uses: DTherHtun/google-chat-action@v0.7
with:
project: ${{ github.repository }}
commit: ${{ github.sha }}
commit: ${{ steps.slug.outputs.sha8 }}
branch: ${{ github.ref }}
status: ${{ job.status }}
actionid: ${{ github.action }}
actionid: ${{ github.repository }}/runs/${{ github.run_id }}
webhook: "https://chat.googleapis.com/v1/spaces/AAAAzPcAy4s/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=MmdzluicdrdkyUAV_QwB6BzlLcIhbfrwNzxVrEllaec%3D&threadKey=git-commit"
```
OR
for faster.
```yaml
name: Sample Testing
on: [push]
jobs:
my_job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- run: echo ::set-output name=action_msg::Someone $GITHUB_EVENT_NAME to $GITHUB_REPOSITORY - $GITHUB_REF - commitid $GITHUB_SHA
id: txt
- name: Chat Setup
uses: docker://dther/google-chat-action:latest
with:
msg: ${{ steps.txt.outputs.action_msg }}
webhook: "https://chat.googleapis.co....."
```