Skip to content

Update README.md

Update README.md #43

Workflow file for this run

name: Trigger Tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger tests repository
id: trigger
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: EPFLRocketTeam/C_AV_SIL
event-type: run-tests
client-payload: |
{
"branch": "${{ github.head_ref }}",
"commit": "${{ github.sha }}",
"repo": "${{ github.repository }}"
}
checking:
runs-on: ubuntu-latest
needs: trigger
steps:
- name: Wait for workflow to complete
run: |
sleep 80
while true; do
sleep 10
STATUS=$(curl -s -H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" \
"https://api.github.com/repos/EPFLRocketTeam/C_AV_SIL/actions/runs?event=repository_dispatch&status=completed" | \
jq -r '.workflow_runs[0].conclusion')
echo "Status: $STATUS"
if [ "$STATUS" == "success" ]; then
echo "Dispatched workflow succeeded"
break
elif [ "$STATUS" == "failure" ]; then
echo "Dispatched workflow failed"
exit 1
fi
done