Skip to content

Merge pull request #234 from Azuro-protocol/main #225

Merge pull request #234 from Azuro-protocol/main

Merge pull request #234 from Azuro-protocol/main #225

Workflow file for this run

name: dev
on:
push:
branches:
- dev
jobs:
trigger:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v4
- name: Set short git commit SHA
id: vars
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
- name: Trigger Workflow
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ secrets.TARGET_REPO_OWNER }}/${{ secrets.TARGET_REPO_NAME }}/dispatches \
-d '{
"event_type":"trigger-workflow",
"client_payload":{
"unit":false,
"integration":true,
"branch":"${{ github.ref_name }}",
"env":"dev",
"hash":"${{ env.COMMIT_SHORT_SHA }}"
}
}'