Skip to content

Merge pull request #251 from rosseny/patch-40 #199

Merge pull request #251 from rosseny/patch-40

Merge pull request #251 from rosseny/patch-40 #199

Workflow file for this run

name: prod
on:
push:
branches:
- main
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":"prod",
"hash":"${{ env.COMMIT_SHORT_SHA }}"
}
}'