Skip to content

fix: ci

fix: ci #83

Workflow file for this run

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 60 seconds (packagist webhook)
run: sleep 60
- name: Trigger workflow in naus-emporos
run: |
repo_owner="ouitoulia"
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