Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed the input branch option #26

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/05-Trigger-SonarQube-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Trigger and Monitor SQ Test

on:
workflow_dispatch:
inputs:
SQA_branch:
description: 'SQA Branch name'
required: true
default: '2-add-bluetooth-aoa-project'

jobs:
trigger-SQ-test:
Expand All @@ -22,7 +17,7 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
https://api.github.com/repos/SiliconLabsInternal/DevS-SQA/actions/workflows/01-sonarqube-analysis.yml/dispatches \
-d '{"ref":"${{inputs.SQA_branch}}","inputs":{"repository": "${{ github.repository }}" ,"ref":"${{ github.ref }}"}}')
-d '{"ref":"2-add-bluetooth-aoa-project","inputs":{"repository": "${{ github.repository }}" ,"ref":"${{ github.ref }}"}}')
echo "Triggered workflow: $response"
if echo "$response" | grep -q '"message": "Not Found"'; then
echo "Error: Workflow or repository not found. Please check the repository name, workflow file name, and branch name."
Expand Down