-
Notifications
You must be signed in to change notification settings - Fork 52
50 lines (44 loc) · 1.59 KB
/
notify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This is a basic workflow to help you get started with Actions
name: 'Notify (DOCS)'
on:
push:
branches:
- main
paths:
- demo/docker-compose/README.md
- demo/kubernetes/README.md
- README.md
workflow_dispatch:
jobs:
notify:
name: 'Notify docs about api-firewall demo docs changes'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: GitHub API Call to notify product-docs-en
env:
FIREWALL_DOCS_TOKEN: ${{ secrets.FIREWALL_DOCS_TOKEN }}
PARENT_REPO: wallarm/product-docs-en
PARENT_BRANCH: master
WORKFLOW_ID: 11686992
run: |-
curl \
-fL --retry 3 \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ env.FIREWALL_DOCS_TOKEN }}" \
https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches \
-d '{"ref":"${{ env.PARENT_BRANCH }}"}'
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: wallarm/api-firewall
short-description: ${{ github.event.repository.description }}