fix analytics
This commit is contained in:
		@ -56,23 +56,7 @@ jobs:
 | 
				
			|||||||
          git checkout -B analytics-update
 | 
					          git checkout -B analytics-update
 | 
				
			||||||
          git add analytics/
 | 
					          git add analytics/
 | 
				
			||||||
          if git diff --cached --quiet; then
 | 
					          if git diff --cached --quiet; then
 | 
				
			||||||
            echo "ANALYTICS_CHANGES=false" >> $GITHUB_OUTPUT
 | 
					 | 
				
			||||||
          else
 | 
					          else
 | 
				
			||||||
            git commit -m "chore: update analytics data"
 | 
					            git commit -m "chore: update analytics data"
 | 
				
			||||||
            git push origin analytics-update --force
 | 
					            git push origin analytics-update --force
 | 
				
			||||||
            echo "ANALYTICS_CHANGES=true" >> $GITHUB_OUTPUT
 | 
					 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Create Pull Request in Gitea
 | 
					 | 
				
			||||||
        if: steps.commit_step.outputs.ANALYTICS_CHANGES == 'true'
 | 
					 | 
				
			||||||
        run: |
 | 
					 | 
				
			||||||
          curl -X POST \
 | 
					 | 
				
			||||||
            -H "Content-Type: application/json" \
 | 
					 | 
				
			||||||
            -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
 | 
					 | 
				
			||||||
            https://gitea.eco.tsi-dev.otc-service.com/api/v1/repos/infra/otc-metadata-rework/pulls \
 | 
					 | 
				
			||||||
            -d '{
 | 
					 | 
				
			||||||
              "title": "chore: update analytics data",
 | 
					 | 
				
			||||||
              "head": "analytics-update",
 | 
					 | 
				
			||||||
              "base": "main",
 | 
					 | 
				
			||||||
              "body": "Automatisches Update der Analytics-Daten"
 | 
					 | 
				
			||||||
            }'
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user