-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.36 KB
/
update_downstream.yml
File metadata and controls
43 lines (37 loc) · 1.36 KB
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
name: bump in downstreams
on:
workflow_dispatch:
inputs:
sha:
description: 'sha to make downstreams point to'
type: string
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.sha }}
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Check outputs
run: echo "will set ${{github.event.inputs.sha || steps.vars.outputs.sha_short}} (default ${{steps.vars.outputs.sha_short}})"
- name: Trigger `deploy/update_api_version`
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TRIGGER_EVENT_GITHUB_PAT }}
repository: humanlogio/humanlog-pro
event-type: update_api_version
client-payload: '{"package_version": "${{github.event.inputs.sha || steps.vars.outputs.sha_short}}"}'
- name: Trigger `deploy/update_api_version`
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.TRIGGER_EVENT_GITHUB_PAT }}
repository: humanlogio/humanlog.io
event-type: update_api_version
client-payload: '{"package_version": "${{github.event.inputs.sha || steps.vars.outputs.sha_short}}"}'