Skip to content

Commit 8cf50e3

Browse files
author
Enda
authored
ci: notify tools repo when there is a new release (#1463)
* ci: notify tools repo when there is a new release * ci: add workflow ID
1 parent 030e8b5 commit 8cf50e3

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: goreleaser
1+
name: Release
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

88
jobs:
9-
goreleaser:
9+
release:
1010
runs-on: ubuntu-latest
1111
steps:
1212
-
@@ -72,4 +72,21 @@ jobs:
7272
token: ${{ secrets.APP_SERVICES_CI }}
7373
repository: redhat-developer/app-services-guides
7474
event-type: rhoas-cli-release
75-
client-payload: '{"version": steps.set-version.outputs.version }'
75+
client-payload: '{"version": steps.set-version.outputs.version }'
76+
tools-release:
77+
if: steps.check-tag.outputs.prerelease == 'false'
78+
needs: release
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v2
82+
- name: Notify tools repo
83+
uses: actions/github-script@v6
84+
with:
85+
script: |
86+
github.request('POST /repos/redhat-developer/app-services-tools/actions/workflows/20880234/dispatches', {
87+
workflow_id: 20880234,
88+
ref: 'ref',
89+
inputs: {
90+
rhoasVersion: context.ref.replace(/^refs\/tags\//, '')
91+
}
92+
})

0 commit comments

Comments
 (0)