feat(script): aggiunte materie primaria e infanzia #30 #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Create Ouitoulia Release" | |
on: | |
push: | |
tags: | |
- '*' | |
# - '/^\d+\.\d+\.\d+(-\w+)?$/' | |
jobs: | |
ouitoulia_release: | |
name: "Ouitoulia Release" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Wait for 10 seconds (packagist webhook) | |
run: sleep 10 | |
- name: Trigger workflow in naus-emporos | |
run: | | |
repo_owner="${{ github.repository_owner }}" | |
repo_name="naus-emporos" | |
event_type="trigger-workflow" | |
service="$(echo $GITHUB_REPOSITORY | cut -d/ -f2)" | |
version="${{ github.ref_name }}" | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.WORKFLOW_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \ | |
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}" | |
shell: bash |