Skip to content

Commit d66bac3

Browse files
authored
Add post-release workflow
1 parent 4f53687 commit d66bac3

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Post release
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
trigger-archive-maker:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Authenticate as GitHub app
12+
id: generate_token
13+
uses: tibdex/github-app-token@v1
14+
with:
15+
app_id: ${{ secrets.AUTOMATION_CLIENT_ID }}
16+
installation_id: ${{ secrets.AUTOMATION_CLIENT_INSTALLATION }}
17+
private_key: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
18+
19+
- name: Extract tag name
20+
id: tag
21+
run: |
22+
TAG="${{ github.ref_name }}"
23+
VERSION="${TAG#v}"
24+
echo "version=$VERSION" >> $GITHUB_OUTPUT
25+
26+
- name: Trigger archive-maker via repository_dispatch
27+
uses: actions/github-script@v7
28+
with:
29+
github-token: ${{ steps.generate_token.outputs.token }}
30+
script: |
31+
await github.rest.repos.createDispatchEvent({
32+
owner: 'ibexa',
33+
repo: 'archive-maker',
34+
event_type: 'ibexa-product-release',
35+
client_payload: {
36+
product: '${{ github.event.repository.name }}',
37+
version: '${{ steps.tag.outputs.version }}',
38+
skeleton_version: '${{ steps.tag.outputs.version }}',
39+
php_version: '8.3',
40+
}
41+
})

0 commit comments

Comments
 (0)