File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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+ })
You can’t perform that action at this time.
0 commit comments