-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.66 KB
/
update_dependencies.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
51
name: Update dependencies
on:
workflow_dispatch:
workflow_call:
secrets:
PAT:
required: true
jobs:
get_version:
name: Get version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.package-version.outputs.current-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{github.ref_name}}
- name: Get package version
id: package-version
uses: martinbeentjes/[email protected]
zeta_web:
name: Update Zeta Web
runs-on: ubuntu-latest
needs: get_version
steps:
- name: "Trigger repository_dispatch in zeta-web"
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/zebratechnologies/zeta-web/dispatches \
-d '{"event_type":"update-icons","client_payload":{"version": "${{ needs.get_version.outputs.version }}"}'
website:
name: Update the Zeta Icons website
runs-on: ubuntu-latest
needs: get_version
steps:
- name: "Trigger repository_dispatch in zeta-icons-website"
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/zebratechnologies/zeta-icons-website/dispatches \
-d '{"event_type":"update-icons","client_payload":{"version": "${{ needs.get_version.outputs.version }}"}'