Skip to content

Commit

Permalink
step build
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 20, 2024
1 parent 34d3473 commit b67d0df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pipelineIC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
#pwd
#ls -R
set +e
curl -f -X POST -u '${{ secrets.SONAR_TOKEN }}:' 'https://sonarcloud.io/api/projects/create' -d 'name=${{ github.event.repository.name }}' -d 'project=${{ github.event.repository.name }}' -d 'organization=devsecopsusach' -d 'visibility=public'
curl -f -X POST -u '${{ secrets.SONAR_TOKEN }}:' 'https://sonarcloud.io/api/projects/create' -d 'name=proyectousasch1' -d 'project=proyectousasch1' -d 'organization=devsecopsusach' -d 'visibility=public'
if [ $? -ne 0 ]; then
echo "Proyecto ya existe en Sonarcloud"
echo "project_created=false" >> $GITHUB_ENV
else
echo "Proyecto ${{ github.event.repository.name }} creado exitosamente en Sonarcloud"
echo "Proyecto proyectousasch1 creado exitosamente en Sonarcloud"
echo "Se establece rama main como rama por defecto"
curl -X POST -u '${{ secrets.SONAR_TOKEN }}:' 'https://sonarcloud.io/api/project_branches/rename' -d 'name=main' -d 'project=${{ github.event.repository.name }}'
curl -X POST -u '${{ secrets.SONAR_TOKEN }}:' 'https://sonarcloud.io/api/project_branches/rename' -d 'name=main' -d 'project=proyectousasch1'
echo "project_created=true" >> $GITHUB_ENV
fi
set -e
Expand Down

0 comments on commit b67d0df

Please sign in to comment.